
January 28th, 2004, 11:25 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Location: Little Rock, AR
Posts: 38
Time spent in forums: 1 h 38 m 18 sec
Reputation Power: 5
|
|
HTML, Javascript - using history
Hi,
I have an ASP page with a form that has several fields on it. If I try to navigate back to the page using either the browser's back button or my own javascript button the page comes up but the form fields are empty.
All fields are normal text fields except one text field that I dynamically populate from a database based on user selection crieria on the page. When a user clicks on a selection box entry I use ASP and Javascript to get data from a database and fill in the text box.
What causes my fields to be empty? or mabye a better question is my page being cached correctly but overlaid for some reason when I come back to it?
Without setting a cookie or session variable can I tell which page (or url I guess) issued the back request?
In other words I guess I'm trying to figure out when the page loads if it is requested normally or because a history.back() request was made.
Thanks for the help.
|