On 30 Sep., 18:25, "Steffan A. Cline" <[EMAIL PROTECTED]> wrote:
> Thanks for the quick answer! I did realize that the issue was that the items
> did not exist at the time of binding. I am new to jQuery and am trying to
> understand all the nice amenities we have now in comparison to hand coding
> all of this.
>
> I tried to implement your example as a drop in and it seemed to make no
> difference. Was there supposed to be more for me to add?

Yes there was... :)

The line where you initialize the dialog must be repeated in the load
callback. Theoretically that is, because I'm not sure how the jqModel
plugin works. But I just learned that you can safely reinitialize a
modal, thus the following code should work (albeit untested):

$(function() {

     var dialogify = function() {
         $('#dialog').jqm({ajax: '@href', trigger: 'a.details'});
     };
     dialogify();

    $('#tabs > ul').tabs({
        load: dialogify,
        fx: { height: 'toggle', opacity: 'toggle' }
    });

});

HTH --Klaus

Reply via email to