开发者

ui redmond theme causing error "Failed to load resource data:"

I stripped this down to the bare essentials:

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>

<script src="js/jquery-1.5.1.min.js"></script>
<script src="js/jquery-ui-1.8.12.custom.min.js"></script>
<link href="css/redmond/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />

<script>

$(document).ready( function() {
    $("#dialog-for开发者_Go百科m-login").dialog( {
    });
});

</script>
</head>

<body>


<div id='dialog-form-login' title='log in'>
    <p id='explain'>Please enter your username and password. If you forgot your password select the 'forgot password' button at the bottom of this window</p>
    <form id='loginform'>
        <fieldset>
            <label for='username'>username</label><br />
            <input type='text' name='username' id='username' class='text ui-widget-content ui-corner-all' /><br />
            <label for='password'>password</label><br />
            <input type='password' name='password' id='password' class='text ui-widget-content ui-corner-all' /><br />
        </fieldset>
     </form>
</div>


</body>
</html>

I downloaded the theme from jQueriui.com and installed everything. A sample of the file can be found at test.html.

If you load that page in safari and select "inspect element" you'll find an error: "Failed to load resource data:". I stripped just about everything I wrote myself from this test, so it's running on just the jQueryUI files. Why am I getting this error and what can I do to fix this?


It's not you, it's an outstanding bug in jQuery UI Dialog (you can see it if you just use their examples on the jQuery UI website). It's fixed in trunk but I don't think the fix is released yet. Details in the bug report. There's also a workaround in there (small change to the CSS).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜