Re: [Rails] link_to with :remote=>true works when bound to "click" but not "ajax:beforeSend"

2012-03-13 Thread Paul
$('approve-item').bind('ajax:before', function( etc... On Tue, Mar 6, 2012 at 10:59 PM, KevinC wrote: > Hi. I am trying to do an ajax link in Rails 3.2.1 and jQuery. I am > loading jquery.js and jquery_ujs.js.  In my document ready, if I bind > to the event "click," clicking the link fires an eve

[Rails] link_to with :remote=>true works when bound to "click" but not "ajax:beforeSend"

2012-03-06 Thread KevinC
Hi. I am trying to do an ajax link in Rails 3.2.1 and jQuery. I am loading jquery.js and jquery_ujs.js. In my document ready, if I bind to the event "click," clicking the link fires an event, but if I click to ajax:beforeSend, it doesn't. Nothing happens when you click the link in JQuery. The ev