/public/javascripts/dojo/dijit/tests/layout/test_refreshOnShow.html

http://enginey.googlecode.com/ · HTML · 65 lines · 45 code · 15 blank · 5 comment · 0 complexity · a497b03d64865cf81357629357ce757b MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html>
  4. <head>
  5. <title>ContentPane Test</title>
  6. <style>
  7. @import "../../../dojo/resources/dojo.css";
  8. @import "../css/dijitTests.css";
  9. body {
  10. margin: 1em;
  11. padding: 1em;
  12. }
  13. .box {
  14. position: relative;
  15. background-color: white;
  16. border: 2px solid black;
  17. padding: 8px;
  18. margin: 4px;
  19. }
  20. </style>
  21. <!-- required: the default dijit theme: -->
  22. <link id="themeStyles" rel="stylesheet" href="../../../dijit/themes/tundra/tundra.css">
  23. <!-- required: dojo.js -->
  24. <script type="text/javascript" src="../../../dojo/dojo.js"
  25. djConfig="isDebug: true, parseOnLoad: true"></script>
  26. <!-- only needed for alternate theme testing: do NOT use in your code! -->
  27. <script type="text/javascript" src="../_testCommon.js"></script>
  28. <script type="text/javascript">
  29. dojo.require("dijit.dijit"); // optimize: load dijit layer
  30. dojo.require("dijit.layout.ContentPane");
  31. dojo.require("dijit.layout.TabContainer");
  32. dojo.require("dijit.layout.AccordionContainer");
  33. </script>
  34. </head>
  35. <body class="tundra">
  36. <h1 class="testTitle">Dijit layout.ContentPane tests</h1>
  37. <!-- works: -->
  38. <div dojoType="dijit.layout.TabContainer" style="height:200px;">
  39. <div dojoType="dijit.layout.ContentPane" href="_lorem.html" title="one" refreshOnShow="false"></div>
  40. <div dojoType="dijit.layout.ContentPane" href="_lorem.html" title="two" refreshOnShow="false"></div>
  41. <div dojoType="dijit.layout.ContentPane" href="_lorem.html" title="three" refreshOnShow="false"></div>
  42. </div>
  43. <!-- does not work yet: -->
  44. <div dojoType="dijit.layout.AccordionContainer" style="height:200px; width:400px;">
  45. <div dojoType="dijit.layout.AccordionPane" title="one" refreshOnShow="false" href="_lorem.html"></div>
  46. <div dojoType="dijit.layout.AccordionPane" title="two" refreshOnShow="true" href="_lorem.html"></div>
  47. <div dojoType="dijit.layout.AccordionPane" title="three" refreshOnShow="false" href="_lorem.html"></div>
  48. </div>
  49. </body>
  50. </html>