Switch to next page does not work
Hi,
today is my first try with jQuery Mobile.
I've got this simple php-Script wich contains 2 pages:
- <?php
if(isset($_GET["page"]))
{
echo '<!DOCTYPE html>
<html>
<head>
<title>2</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="jquery.mobile-1.0a2.css" />
<script src="jquery-1.4.4.js"></script>
<script src="jquery.mobile-1.0a2.js"></script>
</head>
<body data-role="page" data-theme="d">
<div data-role="header">
<h1>Page 2</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Title 2</li>
<li>blablub</li>
<li>blablub</li>
</ul>
</div>
</body>
</html>
';
}
else
{
echo '<!DOCTYPE html>
<html>
<head>
<title>1</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="jquery.mobile-1.0a2.css" />
<script src="jquery-1.4.4.js"></script>
<script src="jquery.mobile-1.0a2.js"></script>
</head>
<body data-role="page" data-theme="d">
<div data-role="header">
<h1>TODO</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Title</li>
<li>blablub</li>
<li>blablub</li>
<li>
<a href="mobile.php?page=test">next page</a>
</li>
</ul>
</div>
</body>
</html>
';
}
?>
If i click on the link "next page" he says always "loading" but the second page will not be shown.
What did i wrong?
Thanks