How to pass values in Ajax.Updater

Deepa Rajendran lists at ruby-forum.com
Mon Mar 9 10:48:18 MSK 2009


<%= link_to_remote( (image_tag
"/images/Edit.gif",:border=>0,:title=>'Edit'),:url=>{:action=>"say_hello",:id=>sal.id},:html=>{:onclick=>"new
Ajax.Updater('mydiv',
'/example/say_hello', {asynchronous:true}); return false;"})%>

           This is my coding i don't know how to pass id to
link_to_remote using Ajax.Updater.if the edit link is clicked in the
bottom of the page,it should be rollover to top of the page and the
content of the edit link should be displayed.
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list