This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Luke Redpath (author)
Mon Apr 20 01:58:42 -0700 2009
blogdata / 006-update-to-unobtrusive-javascript-plugin.markdown
:format: :markdown :title: Update to Unobtrusive Javascript Plugin
:published_on: Wed Jun 07 14:33:00 UTC 2006
Update 15 Feb 2009: The UJS plugin for Rails is no longer actively maintained but you can find the the source on github.
Some small changes and one major bug fix have been checked into Subversion today:
- The controller action that serves up event-selector.js, eliminating the need to manually copy it to your public/javascripts folder, was looking for the js file in the wrong place, stopping the whole plugin from working. If you've already discovered this, please run an update.
- There is now an unobtrusive version of the link_to_remote function - this also dynamically appends a return false to the onclick event to ensure it works in Safari (see this blog post)
- The rules are now assigned using an addLoadEvent function instead of window.onload - this is more of a quick fix and will be improved in the future (I plan to use Prototype's onReady extension) but in the meantime this makes sure it doesn't mess up any other onload events you might have.
- The rules are re-applied automatically on completion of any AJAX request
Please post any bugs to the Agile Evolved Open Source Trac.







