Subject: [Rails] How to call javascript method from controller or by Ajax?
Hi guys,

In Rails framework, I need to call the lightbox to add payment method
by using javascript method AuthorizeNetPopup.openAddPaymentPopup().
But based on the design, the popup should be triggered by other ways
not by clicking the normal button.
For example, users click "signup" button, the server side can generate
ProfileID, Token, and send the Token to page, but right now how can I
automatically tirgger the AuthorizeNetPopup.openAddPaymentPopup()
method to open the popup?
If I can refer to Ajax, but how can I call the above method in .js
file?

I appreciate any idea or suggestion!!! Thank you very much in
advance!!!

Best!

--
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 rubyonrails-talk@xxxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

(C)2011 mailinglist-archive.com