On Jul 31, 11:54 am, skatta <[EMAIL PROTECTED]> wrote: > > $('body').click(function(event) { > > if ($(event.target).is('.triggerit')) { > alert("Hi!"); > $('#overlay').jqm({ajax: '@href', overlay:80, trigger: > '.triggerit'}); > return false; > > } > });
>From the looks of it (I'm still confused @ your greater goal), you're calling $.jqm() multiple times on an element. This is "a bad thing"(tm). Perhaps $.jqmShow() is a better bet? $.jqmShow() effectively triggers displaying of an element $.jqm() has been called on. Think of $.jqm() as an initializer. e.g.; [!-- JS --!] $('body').click(function(event) { if ($(event.target).is('.triggerit')) { alert("Hi!"); $('#overlay').jqmShow(); return false; } }); $('#overlay').jqm({ajax: '@href', overlay:80, trigger: false}); // the global click function handles .triggerit clicks -- no reason to assign one, or else the dialog would try to open TWICE each time a .triggerit element is clicked. Hope this serves as beneficial reference, ~ Brice