ui redmond主题导致错误“无法加载资源数据:”

时间:2011-05-12 08:51:12

标签: jquery user-interface themes

我把它剥离到了基本要素:

<!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-form-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>

我从jQueriui.com下载了主题并安装了所有内容。可以在test.html找到该文件的示例。

如果您在safari中加载该页面并选择“inspect element”,您将发现错误:“无法加载资源数据:”。我从这个测试中删除了我自己编写的所有内容,所以它只运行在jQueryUI文件上。为什么我会收到此错误,我该怎么做才能解决此问题?

1 个答案:

答案 0 :(得分:2)

这不是你,它是jQuery UI Dialog中的一个突出的错误(如果你只是在jQuery UI网站上使用他们的例子,你可以看到它)。它已在主干中修复,但我认为修复程序尚未发布。 the bug report中的详细信息。那里还有一个解决方法(对CSS的小改动)。