history.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>History Example</title>
  5. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
  6. <link rel="stylesheet" type="text/css" href="../shared/example.css"/>
  7. <!-- GC -->
  8. <script type="text/javascript" src="../../ext-all.js"></script>
  9. </head>
  10. <body>
  11. <h1>History Example</h1>
  12. <script type="text/javascript">
  13. // Ensure we're not inside an iframe
  14. if (window != window.top) {
  15. document.write('<p>History example doesn\'t work inside an iframe.</p>');
  16. document.write('<p><a href="#" onclick="window.open(document.location.href); return false;">Open in new tab.</a></p>');
  17. }
  18. else {
  19. document.write('<script type="text/javascript" src="history.js"></'+'script>');
  20. }
  21. </script>
  22. <p>This is a simple implementation of the <tt>Ext.History</tt> component for managing browser back/forward navigation within a single page.</p>
  23. <p>It demonstrates managing history for multiple components within the page. Simply change tabs and use the browser Back
  24. and Forward buttons to navigate them.</p>
  25. <p>The js is not minified so it is readable. See <a href="history.js">history.js</a>.</p>
  26. <!-- Fields required for history management -->
  27. <form id="history-form" class="x-hide-display">
  28. <input type="hidden" id="x-history-field" />
  29. <iframe id="x-history-frame"></iframe>
  30. </form>
  31. </body>
  32. </html>