Are you sure you want to store it in cookies, and not something more  
durable?  In addition to the obvious issues of users rejecting/ 
deleting cookies, you're limited to 20 per domain, an upper size  
limit of each cookie (4K), and the browser may limit the total number  
of cookies allowed across all sites.  If storing the position is  
important, you may wish to put it in a db via Ajax calls.

Check the docs for functions to get an element's position.



TAG

On Jul 2, 2007, at 3:10 PM, [EMAIL PROTECTED] wrote:

>
> problem: i have a page full of divs (a la iGoogle) that are movable. i
> need to be able to save the page layout pref. in cookies when the user
> leaves the page, so the divs will appear in the same configuration
> when they user comes back. so far my searches have been fruitless.
>
> i'm using sortables in script.aculo.us, and i think what i need might
> already be in the code someplace. but i'm a total n00b, so if anyone
> can point me in the right direction, i'd be much abliged.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to