Forum: Ruby on Rails jQuery and rails events

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
sa 1. (Guest)
on 2009-02-03 09:51
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?...
This topic is locked and can not be replied to.