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
that? thanks
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
that? thanks