Hello all,
I'd like to know what do you do keep variables across ajax pages.
I've been doing something that I consider a "hack" and very noobish
(I'm not a programmer):
I create an invisible DIV in the main page and sub-divs with the
variables, then when I need the values I use attr() to retrieve the
current value.
Something like this:
<div id="variables">
<div id="language">en</div>
<div id="session">clients</div>
<div id="source">digital</div>
</div>
Then when I need to know where the user came from, for example, I just
do a $("#variables #source").attr("id").
I actually find this easy to debug because I can always unhide the
variables DIV.
Is this extremely noobish? What's the best way to do something like
this?