jquery-mobile/docs/pages/docs-links-urltest/index.html
scottjehl 0ba9acfc33 added support for URL updating via a preset data-url on the page div when it is sent from the server.
If data-url is set on a page div when it returns from the server, it's value will be used to replace the url in the hash, and as the base url for future requests if it adds additional segments (such as a trailing slash). This will enable developers to work around the limitation of directory links requiring a trailing slash, and will also allow developers to specify a new url after a redirect occurs (such as after a login). Fixes #867
2011-01-24 19:35:45 -05:00

24 lines
No EOL
659 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Framework - Test URL Example</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script type="text/javascript" src="../../js/jquery.js"></script>
<script type="text/javascript" src="../../js/"></script>
</head>
<body>
<div data-role="page" data-url="docs-links-urltest/">
<div data-role="header">
<h1>URL Test Page</h1>
</div>
<div data-role="content">
<p>This is a regular page that updated the url with a different value than was requested.</p>
</div>
</div>
</body>
</html>