Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

unobtrusive javascript helpers still missing features

#4047

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.

Reported by Marc Schütz · February 24th, 2010 @ 05:57 PM

State: invalid
Milestone: 3.0.2
Assigned to: nobody
Importance: Low

Activity

  1. Erik St. Martin
    Erik St. Martin
    • 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.

    March 19th, 2010 @ 01:58 AM

  2. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • Milestone cleared.
    • Tag changed from invalid, rails3, ujs to rails3, ujs
    • State changed from new to invalid

    March 27th, 2010 @ 08:35 AM

  3. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM