Friday, July 9, 2010

[Rails] Re: How to set JQuery's effect for normal link

well you have to use link_to_function method see on
http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#M002237

its is similar to link_to_remote ajax in ror
you also shuold have jrails working
in your view

<%= link_to_function("Avoid Ajax Call", nil, :id => "more_link") do |
page|
page.select('body').hide
page[:details].visual_effect :fadeOut
# your smoe other effect
end
%>

--
Tushar
http://pragtech.co.in

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate