Rjs question

Hello RoR developers,

I want to see url path in alert message.

exp,

this is my url
<%=url_for :controller=>‘admin’, :action=>‘admin2’%>

I want to see the path in alert message when I click to button

I want to call that try() method by rjs,

is it possible?

thanks for any help.

On 23 Apr 2008, at 10:10, Lamer L. wrote:

I want to see the path in alert message when I click to button

I want to call that try() method by rjs,

I believe try is a reserved word in javascript (used for try{} catch).
Assuming your function is defined somewhere sensible (eg
application.js), just
page.call ‘your_function’
should be enough.

Fred

I believe try is a reserved word in javascript (used for try{} catch).
Assuming your function is defined somewhere sensible (eg
application.js), just
page.call ‘your_function’
should be enough.

Fred

thank you very much.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs