Forum Moderators: open

Message Too Old, No Replies

losing JavaScript values on Back Button

         

natty

12:03 am on Mar 24, 2003 (gmt 0)

10+ Year Member



hi all,

im having problems with back buttoning and losing values.
i fill selectes dynamically (js), and submit the page. if i then back button to that page, none of the selects remain filled.
why is this?
is it a browser setting? doctype setting? a server setting?
any help, as always much appreciated

thanks

nat

DrDoc

6:51 am on Mar 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Because, like your title says, any JavaScript values are lost/reset when the page is unloaded.

Brett_Tabke

12:20 pm on Mar 24, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The js can get re-executed in alot of browsers.

DrDoc

1:26 pm on Mar 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But I think natty is talking about fills that depend on variables set during the session, in which case those variables will have lost their value on back-click...