<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><div>Hi Folks,</div><div><br></div><div>I have discovered why I am getting multiple events -- increasingly multiple events. In the following code, the "attach" method is called for each click and notice that this has the effect of attaching a new event handler for each event handler already attached. </div><div><br></div><div>And here's the mystery: My code differs by ONLY identifiers from the example I followed (<span class="Object" id="OBJ_PREFIX_DWT1303_com_zimbra_url"><a href="http://interactivejunky.com/tutorial-demos/ij-ajax-commands/trigger-page" target="_blank" data-mce-href="http://interactivejunky.com/tutorial-demos/ij-ajax-commands/trigger-page">http://interactivejunky.com/tutorial-demos/ij-ajax-commands/trigger-page</a></span>) and the example works correctly which leaves unexplained why I have to add an unbind() call to avoid the multiple attach problem. I considered that it might be the version of jQuery, but I see the same problem with both 1.7 and 1.8, so at least as far as jQuery_update is concerned, it is not a jQuery issue. I don't know if it is a "behaviors" issue, because I still don't fully understand how "behaviors" works. Anybody have any insight into this question? (Attached is the complete (trivial) module for experimentation, should that be interesting.)</div><blockquote><div>(function ($) {<br> Drupal.behaviors.modc = {<br> attach: function(context, settings) {<br> var $AJAXEnabled = $('#ajax-enabled');<br> <strong></strong><span style="text-decoration: underline;" data-mce-style="text-decoration: underline;"><strong>$AJAXEnabled.unbind();</strong></span><br> new Drupal.ajax('#ajax-enabled', $AJAXEnabled, {<br> url: $AJAXEnabled.attr('href'),<br> settings: {},<br> event: 'click tap'<br> });<br> }<br> }<br> })(jQuery);</div></blockquote><div><br></div><div><span></span>Chris.</div></div></div></div></body></html>