Preserved Topic: DHTML and cookies? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: purgatory |
posted 01-06-2002 00:09
I am using DHTML to expand/collapse certain sections of a rather lenghy form I have created. The problem I am having is when someone submits the form and they forget to fill in certain information in that form. Currently, the form resets, and the DHTML sections return to their defaulted state of "collapsed". How do I get the browser to recognize that those sections are "expanded", and have it keep them expanded even when the browser window is "refreshed". I was thinking that this might have something to do with cookies or sessions or something, but I am not really sure. Does anyone have any information about this? |
Neurotic (0) Inmate Newly admitted |
posted 01-06-2002 21:51 |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 01-07-2002 10:20
You can find JS library that will help you to work with cookies here: http://www.claws-and-paws.com/software/nibbler/index.shtml Use it on page unload to store which layers are and which aren't visible. Of course you should also write JS function that will be executed on page load event which reads cookie value and set visibility of layers accordingly... |