Data from Javascript to Rails?
February 23, 2007 6:49 PM
Subscribe
How can I pass data created via javascript to my Rails application?
I am working on a Rails application that relies on user input for some data that needs to store in the database. The data is created by the user clicking inside a div at various points, and the data that I need to store is the mouse coordinates where the user clicks.
So, the view loads and the user clicks various places. Of course, capturing the mouse position is easily accomplished. Where I am stuck is in how to pass the array of data that I created wtih Javascript to my Rails controller for processing.
Any help is greatly appreciated.
posted by jxpx777 to computers & internet (4 comments total)
1 user marked this as a favorite
posted by IshmaelGraves at 7:01 PM on February 23, 2007