The new release of Firefox, version 2.0, implements the WHATWG spec [1] for client-side session and persistent storage. What is really nice about this spec is that it gives two options for storage, session storage and global storage. Session storage only applies to the current browsing window, while global applies to all windows in a certain domain. Two new DOM elements were created for this purpose, sessionStorage, and globalStorage. I was wondering how to implement this new storage mechanism in Rails. Ideally we would want to create a new type of session store, such as ClientStore, which implements CGI::Session. However, this would require some type of server push technology (enhancement ticket #2395) to call Javascript from the server-side. A more practical approach is to allow storage by calling Javascript from commands such as link_to_remote. I''m basically thinking of implementing something like dojo.storage but based on Prototype using JSON to serialize Ruby hashes. What do you guys think? This can help speed up Ajax apps by pre-loading data on the client, and help alleviate server load. Shane Vitarana http://shanesbrain.net [1] http://whatwg.org/specs/web-apps/current-work/#scs-client-side --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---