Browse Source

new example with a dialog page

master
T. Meissner 12 years ago
parent
commit
77670450bb
2 changed files with 55 additions and 0 deletions
  1. +30
    -0
      ch01_07-0.html
  2. +25
    -0
      ch01_07-1.html

+ 30
- 0
ch01_07-0.html View File

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Up and Running with jQuery Mobile</title>
<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 type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div data-role="page" id="main" data-theme="b">
<div data-role="header">
<h1>Book properties</h1>
</div>
<div data-role="content">
<h2>Up and Running with jQuery Mobile</h2>
<p>Author: <b>Maximiliano Firtman</b></p>
<p>This book has no reviews yet in our database.</p>
<p><a href="ch01_07-1.html" data-rel="dialog" data-transition="pop" data-role="button">
Delete this book</a></p>
<p><a href="" data-role="button">Modify this book</a></p>
</div>
<div data-role="footer">
<h4>O'Reilly store</h4>
</div>
</div>
</body>
</html>

+ 25
- 0
ch01_07-1.html View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Delete confirmation</title>
<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 type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div data-role="page" id="alert" data-theme="b">
<div data-role="header">
<h1>Conirmation</h1>
</div>
<div data-role="content">
<h2>Are you sure to delete this book?</h2>
<p>Author: <b>Maximiliano Firtman</b></p>
<p><a href="" data-role="button">Yes, delete</a></p>
<p><a href="ch01_07-0.html" data-role="button">Cancel</a></p>
</div>
</div>
</body>
</html>

Loading…
Cancel
Save