I read DHH''s post on using various js libraries with rails, and thought
I''d give it a try with jQuery (http://loudthinking.com/posts/32).
What I have is a page composed of various partials, and I''m trying to
invoke jQuery to render a different partial when something is clicked
on.
What I can''t figure out is how to call the action from jQuery
that''ll
cause the actual partial to be rendered. With prototype this would
probably be done with
<span onclick="
<%= remote_function :url => { :action => :some_action } %> and the
controller
">Hi!</span>
will handle it from there. help?...
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---