Dialog Not Clearing
Dialog Not Clearing
The Code:
$("#iframe-modal-pic").attr("src",openUrl).dialog({
open: function(){
$(this).css('width','95%');
},
modal: true,
title: crew + ' Duty Records',
width: 400,
height: 300,
buttons:{
Close: function(){
$(this).dialog().empty();
$(this).dialog('close');}
}
});
On subsequent openings in FF the content is clear. But in IE I see the last content until the data is loaded via the openUrl.
How can I be sure the HTML is cleared in IE. I tried .html("") and both browsers displayed the previous content. .empty() is working in FF but not in IE.
Thanks,
Bill