Reference page as dialog
Description
The following code shows how to reference page as dialog.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css">
</head><!--from w ww . ja v a 2 s. co m-->
<body>
<div id="home" data-role="page">
<div data-role="header" data-position="fixed">
<h1>test</h1>
</div>
<div data-role="content">
<a href="#dialogTest" data-rel="dialog">link</a>
</div>
<div data-role="footer" data-position="fixed">
<h4>test</h4>
</div>
</div>
<div id="dialogTest" data-role="page">
<div data-role="header" data-position="fixed">
<h1>test</h1>
</div>
<div data-role="content">I am a dialog :)</div>
<div data-role="footer" data-position="fixed">
<h4>test</h4>
</div>
</div>
</body>
</html>