Reputation: 47136
Is it possible to call an application level prototype JavaScript function from rjs? I wanna call a function to perform certain tasks after my ajax call. How am i supposed to do it?
Upvotes: 1
Views: 160
Reputation: 40333
At your RJS template:
page.call( "functionName", 1, "something", "whatever" )
Upvotes: 1