Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hidden Window >> Prevent reloading data

Posted on 2003-11-13
1
Medium Priority
?
230 Views
Last Modified: 2010-04-06
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

0
Comment
Question by:graphicjunkie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
Zontar earned 200 total points
ID: 9745809
Well, there's no way to make a window "invisible" and you can't make it any smaller than 150 by 150 px, IIRC. Although I'm generally not fond of framesets, one could be used here, with one frame having a height or width of 0 or 1px.

You could also store the data in one or more session variables.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question