View Single Post
  #7 (permalink)  
Old 09-24-06, 05:47 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Again, you will never see the value of any field if you use "View Sourcecode", you will only see what the browser downloaded when requesting the page. Any changes you make to the page are stored but they do not have an effect on the source code itself.

But if you temporarily change the type of those fields to "text", you can see that they change on the page, but the sourcecode will always stay intact. That is ok since the browser does not use the sourcecode to keep track of the values of fields etc when a page is dynamically changed with scripts.

If you want to store a change on the page during a refresh, you either need to write a cookie and read it when the page loads, or send the data to the server so it can rewrite the sourcecode and make it have the changes before sending it back to the browser.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote