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});
Monthly Archives: September 2006
Generating data for AJAX req in Rails on the fly
UPDATE It is possible – read in next post. Well… I’m starting with AJAX, and my first impressions are very positive. I was skeptical to JS but more I try more I like it. Maybe I don’t like troubles with debugging (like – does know anyone if Venkmann can set breakpoint in JS code embedded …
Continue reading “Generating data for AJAX req in Rails on the fly”
JOE and Rails or how to color RHTML
I’m using JOE as my text editor. I’m used to it and it is hard to change own habits. When I have got interested in Rails, I tried some other editors with support for Rails/Ruby (for UNIX text terminals). I was very close to use VIM with plugins for Rails. But to much habits from …
Consultant
As some may remember I hate consultants. Well, on Guy’s Kawasaki blog I found nice definition of consultant – someone who can’t do but can write. And I have to agree ;-))
Got some change?
Well it looks like cell phone become standard commodity ;-) I wonder if world outside of US is ready for such ideas… When I look at folks in Arkadia (hi there) in Warsaw… it would do for sure :-) Motorola takes cell phone impulse-shopping to new levels