$('iframe').dialog().load(function() {
$(this).closest('.ui-dialog').show();
}).closest('.ui-dialog').hide();- Richard On Tue, Nov 24, 2009 at 11:34 PM, thisisvlad <[email protected]> wrote: > > i want to use a jquery dialog window to show an iframe. i am running into > all sorts of issues. > > first off, i want the dialog to only show when the iframe is loaded. i > tried to create the iframe w/ visibility set to hidden, and then do a > .dialog() on it, but apparent jquery appends the iframe to the dom at this > point, and thus the iframe is reloaded, and we have to wait. > > also, when i close the dialog, jquery appends the iframe again, which means > the iframe is getting reloaded all over again, which wastes resources on my > sever etc. is there a clean way to do this? > -- > View this message in context: > http://old.nabble.com/is-there-a-good-way-to-open-show-an-iframe-in-a-jQuery-dialog-window--tp26507439s27240p26507439.html > Sent from the jQuery UI Discussion mailing list archive at Nabble.com. > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jquery-ui%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
