Thanks for the reply, Bill. The local variable is an element in an array of strings. When I tried js_function(local_variable.to_s), it said local_variable is undefined. When I tried js_function(local_variable), the output was "object HTMLDivElement". Did I miss someting?
bill walton wrote: > > If the local variable is a simple object like a number or a string, just > pass its value, not the object itself, using the .to_s method. If it's > a more complex object, you'll want to convert it to a json object and > pass that. > > HTH, > Bill -- Posted via http://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

