Opened 8 years ago

Closed 8 years ago

#7087 closed bug (worksforme)

Page freezes in IE9 RC when attempting to reopen a previously closed dialog window

Reported by: lindacm Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.10
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by rdworth)

When a dialog window which contains a link is opened and closed, it cannot be reopened in IE9 RC. Instead the screen freezes. The browser will not crash, but it will not draw any new changes to the page.

The problem is difficult to reproduce on jsbin, because additional javascript is included automatically, and seems to 'resolve' the problem. However if you load the following code in a new page, you should be able to duplicate it:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html lang="en-US">
<head>
<title>test</title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> 
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script> 
<link type="text/css" rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/redmond/jquery-ui.css"> 

<script type="text/javascript">
$(document).ready(function(){
	$(".openDialog").click(function(event){
		event.preventDefault();
		if ( !$("#dialogWindow").length ) {
			$("body").append("<div id='dialogWindow' title='Dialog Window'></div>");
			$("#dialogWindow").html( $("#dialogContent").html() ).dialog();
		} else {
			$("#dialogWindow").dialog( "open" );
		}
		return false;
	});
});
</script>
</head>
<body> 

<p><a href="javascript:void(0);" class="openDialog">open dialog window</a></p>
<div id="dialogContent"><a href="javascript:void(0);">link</a></div>

</body>
</html>

Change History (3)

comment:1 Changed 8 years ago by rdworth

Component: ui.coreui.dialog

comment:2 Changed 8 years ago by rdworth

Description: modified (diff)

comment:3 Changed 8 years ago by Scott González

Resolution: worksforme
Status: newclosed

Using your exact code, this works fine for me in IE 9.0.8080.16413 (RC) on Windows 7.

Note: See TracTickets for help on using tickets.