+ 6

What are the ways to store information in a web page?

I am about to build a page that will be used to build other pages. These other pages will then be used to create reports. One page - one report. Now, information about connectionstring, stored procedure, queries, and other, they all need to be stored in that page. So by your opinion what is the best way to store those values? The page needs to be editable, so when in the report builder page user fetches a template all those values need to be editable. All this has to be done in html and JavaScript (JQuery) with a minimal help from the server side techs. For the moment I can only think about hidden inputs, now can I easily fetch their values? - I have managed to create this: var procName = $($.parseHTML(data)).filter('#JSONQuery').val(); where data is a page taken from server side procName is variable that holds name of a stored procedure that needs to be executed in order to get back data for creating the template page (and for testing the same). As you can see that procedure name was in JSONQuery hidden field. Thanks

2nd Mar 2019, 8:12 AM
Dejan Dozet
Dejan Dozet - avatar
1 Answer
+ 7
You can use PHP to edit files, so I would recommend that. I would save the content in a text file, and on the report, load that file into the webpage using some more PHP.
2nd Mar 2019, 8:32 AM
Rowsej
Rowsej - avatar