Dialog broken in IE7 and IE6

Dialog broken in IE7 and IE6


I've been using UI/Dialog for a while. I recently updated my jQuery UI
build to include some modules I had left out before, and now I get an
error every time I tried to create a dialog in IE (6 and 7). I've
created a minimal test case that consists of:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>WTF</title>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
<script type="text/javascript" src="jquery-ui-1.5.2.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
        $('#test').dialog({});
});
</script>
</head>
<body>
<div id="test"></div>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can download the test at:
http://www.mediafire.com/?sharekey=c98f4e71f6c5b26d19747bd91027d4dd2d02184b8557f7c4
You'll see that it works fine in Firefox and Safari, but immediately
generates a Runtime Error in IE.
Unless someone can point out what I'm doing wrong, I'm going to post a
bug report on the jQuery UI Trac as well. The reason I'm posting here
is in case anyone is looking for a temporary workaround. After poking
around in the code, I found that adding "'autoResize': false" to the
dialog options fixes it:
$('#test').dialog({ 'autoResize': false });
autoResize is not a documented option in the jQuery documentation, so
hopefully this saves someone else from the headache I've been dealing
with for the last couple hours.




































    • Topic Participants

    • sumul