Gabriel Handford has created a behavior.js script that allows you to unobtrusively automate Event.observe'tion.
Magic is in naming conventions, so that:
takes care of:
JAVASCRIPT:
-
-
Event.observe(theLinkElement, "click", function(event) { xhrTheFunction(event) });
-


Leave a reply