Solved

Retain data on the form when the page is backed in Netscape 4.7

Posted on 2001-06-15
10
155 Views
Last Modified: 2010-04-09
I have developed an HTML page. This page is designed with a form to feed data in different fields like name, address etc. On this page I have provided a button to view another page with some additional information. After filling this form, I click on this button to view that another page. After viewing this another page, I click on back button to go back to the page where I have entered data in the form. The form page opens but the data fed by me earlier are lost. How do I retain the data entered in the form when I back to this page? This problem occurs in Netscape 4.7. In IE 5 it works fine. Please suggest a solution for this.
0
Comment
Question by:jyotiweb
[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
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 6195203
You can never be sure whether the data will stay or not. Best thing to do is to open the information page in a popup window. Another way is to store all values in cookies and when needed retrieve them again.

Regards,
CJ
0
 
LVL 10

Expert Comment

by:dij8
ID: 6195216
There are a few options.  It is all a matter of how much work you want to put into the development.

The easiest solution is to open a new window with the additional information.  Making sure there is a "Close window" button.  But this may not work with your design.

Another solution is to use frames.  The second frame (set really small so it can't be seen by the user) with hidden form fields.  Either have any link run a script to fill in these fileds from the entries already made or enter them automatically "onchange".  The page would then fill in the fields onload from the hidden fileds in the "hidden" frame.

Alternatively, the same deal as the frames option except use cookies instead.  Create cookies when the fields are changed or a link is clicked.  And fill the fields using an onload statement.  If the cookies don't exist the values will be "".
0
 
LVL 10

Expert Comment

by:dij8
ID: 6195219
Took me too long to type CJ. ;-)
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 22

Expert Comment

by:CJ_S
ID: 6195233
*smiles* :-)
0
 
LVL 8

Expert Comment

by:edemcs
ID: 6195698
if you use a server side language such as Coldfusion or ASP, you can load the form data into an Array of Structs.  These structs can keep track of all of your data on the webpage.  Everytime you go to that page, load it with the information in the struct, this will populate data if it was added, or leave the boxes blank.
0
 
LVL 1

Accepted Solution

by:
GreyWolf_tx earned 50 total points
ID: 6195826
Cookies will work but there are two drawbacks to them, one is that they use up server memory and the second is that security conscience users may have cookies disabled. Structs and arrays also work but are a lot of work to maintain.

There's a cross-browser compatible solution that doesn't involve setting cookies or opening another window but it does involve a little HTML work. You can create a hidden form which stores the values your users have entered and is passed from page to page and is accessible via your favorite scripting language (JavaScript, VBScript, PHP, etc.).

Any of the previously mentioned solutions will work but as dij8 said, it all depends on how much work you want to put into it.

GreyWolf
0
 
LVL 10

Expert Comment

by:dij8
ID: 6197854
Why was GreyWolf given the points when it was just a repost of what I said anyway?

I am glad I didn't get my suggestion accepted if the best you can give is a B.  Especially considering the question was answered and no request for more information was given.  I suggest you read the tips on questions and answers (http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3).

You are new here so that always gets a little grace.  Welcome to EE of course and I hope you stick around to ask more questions.  Please watch what others are doing and be keen to show high respect to the experts that deserve it.
0
 

Author Comment

by:jyotiweb
ID: 6197877
I am extremly sorry for that. I appreciate your effort to answer my question. In future I will take care. Thanks for the solution and suggestions.
0
 

Author Comment

by:jyotiweb
ID: 6197898
I am extremly sorry for that. I appreciate your effort to answer my question. In future I will take care. Thanks for the solution and suggestions.
0
 
LVL 8

Expert Comment

by:bebonham
ID: 6199013
yeah...and he said that cookies take up server memory???

does he know what a cookie is?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

630 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