[jQuery] Re: Keeping variables across ajax pages

2008-02-01 Thread Feed
Yes, I actually made a mistake in the code I provided... instead of $(#variables #source).attr(id) it should be $ (#variables #source).text() ... sorry for that I'll try your suggestion of declaring a global dict. On Jan 31, 8:32 am, Alexey Blinov [EMAIL PROTECTED] wrote: $(#variables

[jQuery] Re: Keeping variables across ajax pages

2008-01-31 Thread Alexey Blinov
$(#variables #source).attr(id) gives you 'source' result isn't it?you need to get (i think) a textNode of div or custome attribute. But better way, i think, is declare global dict like script var params = new Array() params[lang] = en; params[source] = somewhere there; // etc...