Я пытаюсь разработать приложение Phonegap (1.3) для Android (2.1) с помощью jQuery Mobile (1.0).
Я использую пример из книги (Pro jQuery Mobile), и он работает на Firefox, но не на Google Chrome или внутри эмулятора Android, и я хотел бы знать, почему это не работает.
Код первой страницы ("index.html"):
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hijax Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body>
<!-- First Page -->
<div data-role="page">
<div data-role="header"><h1>Hijax Page</h1></div>
<div data-role="content">
<a href="contact.html" data-role="button">Contact Us</a>
</div>
</div>
</body>
</html>
Код второй страницы ("contact.html"):
<div data-role="page">
<div data-role="header">
<h1>Contact Us</h1>
</div>
<div data-role="content">
Contact information
</div>
</div>
То, что я получаю, это «Ошибка загрузки страницы» из jQuery.