Я разобрал это до самого необходимого:
<!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 и выберете «проверить элемент», вы обнаружите ошибку: «Не удалось загрузить данные ресурса:». Я удалил практически все, что написал сам из этого теста, так что он работает только с файлами jQueryUI. Почему я получаю эту ошибку и что я могу сделать, чтобы это исправить?