Displaying 1 result from an estimated 1 matches for "ajaxrules".
2005 Dec 14
1
Problem stopping default event in Safari
...d on a class or an id:
*******************************************************
function loadData(e) {
          // load some data here based on the url of the a tag
(removed for simplicity)
          // then stop the defaultevent
          if(e) {
		Event.stop(e);
	    }
	    return false;
}
var ajaxRules = {
	''.ajaxLink'' : function(myAnchor) {
		// ... code to set up Ajax is up here (removed for simplicity)
             // put an event handler.
		Event.stopObserving(myAnchor, ''click'', loadData, false);
	}
};
Behaviour.register(ajaxRules);
********************...