Solved

Hidden Window >> Prevent reloading data

Posted on 2003-11-13
1
225 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
1 Comment
 
LVL 11

Accepted Solution

by:
Zontar earned 50 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 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