This project is archived and is in readonly mode.
unobtrusive javascript helpers still missing features
Reported by Marc Schütz | February 24th, 2010 @ 05:57 PM | in 3.0.2
link_to_remote() & co. used to support :before
,
:after
, :condition
,
:success
, ... For link_to "url", :remote =>
true
these aren't implemented yet.
If there is now a different recommended way to achieve the same results, this should be documented somewhere.
Comments and changes to this ticket
-
Erik St. Martin March 19th, 2010 @ 01:58 AM
- Tag changed from rails3, ujs to invalid, rails3, ujs
The new approach is to create event listeners for ajax:before ajax:after and perform your logic there, this allows you to do whatever custom logic you need to in your javascript instead of outputting it inline, this allows much more versatility because now you can listen for the ajax:before event only elements with a particular class etc.
-
Yehuda Katz (wycats) March 27th, 2010 @ 08:35 AM
- Milestone cleared.
- Tag changed from invalid, rails3, ujs to rails3, ujs
- State changed from new to invalid
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>