Category Archives: script.aculo.us

UJS; RJS versus POJS; Prototype Stack versus JQuery Stack

I am accustomed to using Unobtrusive JavaScript (UJS) in my apps. UJS dynamically adds event handlers to the DOM. These event handers implement behaviors via DOM manipulations and XMLHttpRequests (XHR’s). This approach is in contrast to the historical approach of … Continue reading

Posted in AJAX, RJS templates, Ruby on Rails, script.aculo.us | 4 Comments

Fight id Proliferation and Update Any Element You Want

update: July 5, 2007: see ID Proliferation Eradication Technique #1… for an update. The Prototype Updater constructor takes an Element (object) or element id (String) as the first parameter. You can see this in prototype.js in Abstract.Insertion.initialize and Ajax.Updater.updateContent . … Continue reading

Posted in AJAX, Ruby on Rails, script.aculo.us | 6 Comments

Foolproof AJAX Progress Indicator

Bruce Williams is right on in Avoiding AJAX Faux Pas where he lists four inviolable conditions your AJAX code must meet. The first two conditions address the need to show (then hide) a visual progress indicator to let the user … Continue reading

Posted in AJAX, RJS templates, Ruby on Rails, script.aculo.us | 2 Comments

script.aculo.us InPlaceEditor Drops Paragraph Tags

I submitted a Rails/script.aculo.us defect describing how Ajax.InPlaceEditor is stripping paragraph tags when loading the textfield/textarea. While waiting for the Universe to respond, I’ve had some time to research the issue a little more. Interestingly, the behavior seems to have … Continue reading

Posted in AJAX, Ruby on Rails, script.aculo.us | Leave a comment