Forum: Ruby on Rails how to call javascript function in RJS ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Scott A. (Guest)
on 2007-07-25 17:59
Hi, I have a javascript function in an included javascript file.

How can I call a function in this file from within an rjs template?

Thanks
Scott
Thorsten (Guest)
on 2007-07-25 18:10
(Received via mailing list)
page.call "your_function()"
Chris H. (Guest)
on 2007-07-25 18:22
(Received via mailing list)
This topic is locked and can not be replied to.