Welcome to WebmasterWorld Guest from 54.196.116.152

Forum Moderators: open

Message Too Old, No Replies

losing JavaScript values on Back Button

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

Full Member

10+ Year Member

joined:Mar 7, 2003
posts:272
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Because, like your title says, any JavaScript values are lost/reset when the page is unloaded.
12:20 pm on Mar 24, 2003 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38061
votes: 13


The js can get re-executed in alot of browsers.
1:26 pm on Mar 24, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


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...