i found a nice trick
instead of putting scr of an iframe directly in the iframe tag, like ($('<iframe src="someURL"/>').dialog()), try to set src later like the following code
var d = $('#jqwin').html('<iframe id="ifrm"></iframe>');
d.dialog();
$("#jqwin>#ifrm").attr("src", url);