Frederick Cheung wrote: > On 11 Feb 2009, at 12:37, andi-hro wrote: > Well it's not rails specific at all (ie. it's just bog standard client > side stuff) but you can make an ajax request from your javascript. The > easiest way to get started would be to read up about that in whatever > javascript library you're using (prototype, jquery, mootools etc.)
It's not technically accurate to say that using an AJAX request is "saving" the data from JavaScript. You would actually be "sending" the data to the server, which would then save the data from the server-side. But, it would give you access to data stored in JavaScript variables allowing you to send it to the server for processing via XMLHTTPRequest (XHR). Also note that you don't actually have to use a JavaScript framework to use XMLHTTPRequest, but the frameworks sure make things much easier, and browser independent. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

