search for: inputvari

Displaying 1 result from an estimated 1 matches for "inputvari".

Did you mean: inputarg
2006 Jan 21
3
Passing ruby variable via remote_function (JavaScript)
...file): As a simple test I create a local variable called ''localVariable'' and give it the string "Hello" like this; <% $localVariable = ''Hello'' %> Next I want to call a function (nameOfAction) which is expecting to receive as 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 => { :c...