Link to home
Start Free TrialLog in
Avatar of graphicjunkie
graphicjunkie

asked on

Hidden Window >> Prevent reloading data

Hello and thanks for viewing my question!

I am creating a page that uses JavaScript to process information that is passed to me via a JSP. Therefore everytime the page reloads, the variables are read in. So in the case that the user changes a bunch of things in the page and hits reload, they lose all the changes because the values are read in again. I wanted to know if there is an easy/intelligent way to prevent this from happening. One idea I had was to create an invisible mother page which read the variables in from the JSP, and opens a child page that would contain the JavaScript for editing the values. The child page would get the values from the mother page and set the values to the mother page using the DOM "opener". That way if the child page is refreshed, the values are still loaded into the mother page and won't be re-read in. This technique would require the mother page to be invisible so that it could not be refreshed by the user. Can this be done? Is there a better way to accomplish this prevention of reloading the values when the page refreshes without using evil cookies? Thanks for your help!

-GJ

ASKER CERTIFIED SOLUTION
Avatar of Zontar
Zontar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial