[thelist] Carrying Javascript values over
Karl Bunyan
freelance at core10.co.uk
Fri Mar 19 08:00:33 CST 2004
You could set/retrieve values in JavaScript cookies by storing page
state data every time the page is interacted with and then restoring it
onload. I wouldn't say it would be 100% robust tracking visible/hidden
div's shouldn't be too much of a problem.
Karl
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of The Lists
> Sent: 18 March 2004 21:54
> To: thelist at lists.evolt.org
> Subject: [thelist] Carrying Javascript values over
>
>
>
> Hi,
>
> I have a page whereby the user can hide or view parts of the
> page, these
> are contained within <DIV> tags, and are purely made visible
> or hidden.
>
> My question is, when the user "re-load's" the page, be it
> submitting on
> a form or by using a hyperlink, or just plain 'F5' is there a way to
> carry the values set by Javascript 'over' to the newly loaded page?
>
> I've done a search on Google, but can't find anything, and
> was thinking
> about creating a session and storing the values in it, just
> before the
> page is exited and then retrieving them before the page
> loads, but how
> could I go about storing the values in a session when they
> are set and
> retrieved by Javascript?
>
> FYI I am using PHP to do the main site development.
>
> TIA
> Alexis
More information about the thelist
mailing list