rubyonrails-talk
August 28th, 2006, 01:25 AM
Hi-
How to access class variables (@something) within onLoad javascript
functions?
I pass an array of customers object to a .rhtml file. When it is
rendered on the browser, I call an onLoad function. I need to access the
@customers objects array in my onLoad function. How can I do that. For
example, I need to get to @customers[0][:customer_name] - how to do
More... (http://groups.google.com/group/rubyonrails-talk/msg/bfdb472330693064)
How to access class variables (@something) within onLoad javascript
functions?
I pass an array of customers object to a .rhtml file. When it is
rendered on the browser, I call an onLoad function. I need to access the
@customers objects array in my onLoad function. How can I do that. For
example, I need to get to @customers[0][:customer_name] - how to do
More... (http://groups.google.com/group/rubyonrails-talk/msg/bfdb472330693064)