Files
pjax/example/index.html

23 lines
647 B
HTML
Raw Normal View History

2015-11-13 10:40:59 +11:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
2015-11-13 10:40:59 +11:00
<title>Hello</title>
<script src="../pjax.js"></script>
<script src="example.js"></script>
2015-11-13 10:40:59 +11:00
</head>
<body>
<div class="body">
2015-11-13 10:40:59 +11:00
<h1>Index</h1>
Hello.
Go to <a href="page2.html" class="js-Pjax">Page 2</a> or <a href="page3.html" class="js-Pjax">Page 3</a> and view your console to see Pjax events.
Clicking on <a href="index.html">this page</a> will just reload the page entirely.
<h2>Forms</h2>
You can submit GET or POST forms with Pjax! Go to the <a href="forms.html">form examples</a> to try it out.
2015-11-13 10:40:59 +11:00
</div>
</body>
</html>