Data for AJAX req in Rails on the fly – solution
Posted on September 30, 2006 - Filed Under AJAX, Ruby
There is solution with Rails helper to issue from my last post. Simple use :with to pass JavaScript variable name.
remote_function (:update => 'results',
:url => {:action => search_points}, :with => 'dataForSearch')
gives exactly what is needed:
new Ajax.Updater('results', '/route/search_points',
{asynchronous:true, evalScripts:true, parameters:dataForSearch});
Popularity: 3% [?]
Hits for this post: 3940
Similar Posts
- Generating data for AJAX req in Rails on the fly
- JavaScript templates – Minus Mor plugin
- Don’t use array as argument for AJAX call with Prototype
- form_tag and HTML options
- Pagination, AJAX and GROUP BY
Comments
Leave a Reply


