Displaying 1 result from an estimated 1 matches for "nameofact".
Did you mean:
nameofapp
2006 Jan 21
3
Passing ruby variable via remote_function (JavaScript)
...39;'s what I''m trying to do (This is all in a .rhtml 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???...