Rahul
Rahul

Reputation: 47136

calling application prototype js function from rjs

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

Answers (1)

Maurício Linhares
Maurício Linhares

Reputation: 40333

At your RJS template:

page.call( "functionName", 1, "something", "whatever" )

Upvotes: 1

Related Questions