Displaying 1 result from an estimated 1 matches for "name_of_div".
Did you mean:
name_of_db
2006 Jan 21
3
Passing ruby variable via remote_function (JavaScript)
...s input a variable (InputVariable). Now, this all works if I
hard code in a string in place of $localVariable, but I don''t want to do
that. The variable is being sent as the name of the variable and not its
contents. Do I need to escape something???
<% remote_function(:update => :name_of_div,
:url => { :controller => ''nameOfController'',
:action => :nameOfAction },
:with => "''InputVariable='' + $localVariable") %>
My question is, how do I get the $localVariable to convert to its
content within the above?
Thanks for any he...