I have a new interaction on a couple pages where I let the user
collapse/expand a side panel. I'd like  to save state, so that when
the page is loaded subsequently, I can show each panel in its previous
state.\

After reading around, it seems that since javascript cant set server-
side session variables, the 2 approaches mentioned are to set a cookie
or to go with ajax.

Not sure how I feel yet about the cookie approach, but a round trip
back to the server for a client-side interaction doesnt seem like the
best approach.

Do others feel the same way or am I missing something here?

Are there other approaches suggested?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to