Hi,
I would like to use UI Dialog with iframe. I use the commad $('<iframe src="someURL"/>').dialog({autoOpen: true}); to open new dilalog.
My problem:
When I call dialog.open(), the Browser produces two requests to the server. One of them is never ending. There is the similar problem, when I call dialog.destory().
I found this (uiDialog.next().length && uiDialog.appendTo('body')); at row 4321 in jquery-ui.js of version 1.7.2 in the open method. I thing this line do nothing because there isn't "if" statement and when I have iframe it produces extra request to the server.
In method destroy at row 4270 is this
this.element
.unbind('.dialog')
.removeData('dialog')
.removeClass('ui-dialog-content ui-widget-content')
.hide().appendTo('body');
I don't know why there is .appendTo. I think .appendTo('body') is unnecessary and produce extra request to the server.
FireFox 3.5.7
jquery-ui 1.7.2
jquery-core 1.4.1
Does anybody know why there is appendTo? I comment it out and everything works fine.