[jQuery] Re: using jqModal - problem with executing jqm with triggers loaded in via AJAX

2007-08-01 Thread bleen
I found a trick burined inside the jqmodal example page ... in your AJAX loaded content do this: $().ready(function(){ }); This seems to work just like $(document).ready but inside AJAX loaded content.

[jQuery] Re: using jqModal - problem with executing jqm with triggers loaded in via AJAX

2007-07-31 Thread skatta
thanks for the advice brice, i don't need some special code where the trigger is being dynamically added to the DOM? seems i have no issue triggering the alert, but the trigger jqm will not fire with out the trigger if it's part of the DOM, and if it's dynamic then it doesn't do anything at all.

[jQuery] Re: using jqModal - problem with executing jqm with triggers loaded in via AJAX

2007-07-31 Thread Brice Burgess
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 sti

[jQuery] Re: using jqModal - problem with executing jqm with triggers loaded in via AJAX

2007-07-31 Thread skatta
anyone? On Jul 31, 12:11 pm, skatta <[EMAIL PROTECTED]> wrote: > also ... is there a better way to handle executing code that's loaded > via ajax? something better than ... $('body').click(function(event) > { } > > On Jul 31, 11:54 am, skatta <[EMAIL PROTECTED]> wrote: > > > hello, > > > just wh

[jQuery] Re: using jqModal - problem with executing jqm with triggers loaded in via AJAX

2007-07-31 Thread skatta
also ... is there a better way to handle executing code that's loaded via ajax? something better than ... $('body').click(function(event) { } On Jul 31, 11:54 am, skatta <[EMAIL PROTECTED]> wrote: > hello, > > just when i thought i had a grip on executing jquery functions from > content that w