Closed Thread Icon

Preserved Topic: DHTML and cookies? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18517" title="Pages that link to Preserved Topic: DHTML and cookies? (Page 1 of 1)" rel="nofollow" >Preserved Topic: DHTML and cookies? <span class="small">(Page 1 of 1)</span>\

 
acidbox
Bipolar (III) Inmate

From: purgatory
Insane since: Mar 2001

posted 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?

Dark
Neurotic (0) Inmate
Newly admitted
posted posted 01-06-2002 21:51

Show us some code.
Do you really need to keep them expanded?, just never colapse them.




mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

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


« BackwardsOnwards »

Show Forum Drop Down Menu