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.
0075c9ee3dc5c4fc1ff3000333583ae0?d=identicon&s=25 Scott AS (ss1982)
on 2007-07-25 15: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
D7c511ce5025d37b8c6bd9134e0f2bd9?d=identicon&s=25 Thorsten (Guest)
on 2007-07-25 16:10
(Received via mailing list)
page.call "your_function()"
A2c85dc5ee81b12e3cc0a6522e8d079d?d=identicon&s=25 Chris Hall (au5lander)
on 2007-07-25 16:22
(Received via mailing list)
This topic is locked and can not be replied to.