03ff2a066835ffa4b28dd877988a99334f23943b.svn-base 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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>Dojo Storage Test</title>
  6. <style type="text/css">
  7. @import "../../../dojo/resources/dojo.css";
  8. </style>
  9. <script type="text/javascript"
  10. src="../../../dojo/dojo.js" djConfig="isDebug: false"></script>
  11. <!--
  12. // 'forceStorageProvider' is a flag to
  13. // force a particular storage type. Example:
  14. //var djConfig = {
  15. // isDebug: false,
  16. // forceStorageProvider: "dojox.storage.FlashStorageProvider"
  17. // };
  18. -->
  19. <script type="text/javascript" src="test_storage.js"></script>
  20. <style type="text/css">
  21. h1 { margin: 0px auto 0px auto; padding-top: 0px auto 0px auto; clear: none; float: left; }
  22. body { padding: 0.2em 1em 1em 1em; }
  23. div { margin-bottom: 1.5em; }
  24. label { margin-right: 0.6em; }
  25. button { margin-right: 0.6em; }
  26. form { float: right; width: 80%; }
  27. #top { width: 70%; }
  28. #directoryContainer { float: left; clear: left; width: 20%; }
  29. #templates { text-align: center; }
  30. #templates a { display: block; margin-top: 1em; }
  31. #directory { width: 100%; }
  32. #namespaceDirectory { width: 100%; }
  33. #storageValue { vertical-align: top; width: 100%; height: 10em; }
  34. #buttonContainer { text-align: center; }
  35. #currentStorageProvider { font-weight: bold; }
  36. #providerMetadataContainer { float: right; font-size: 9pt; }
  37. #storageForm { width: 70%; }
  38. .status { float: right; padding-left: 5px; padding-right: 5px; background: red; color: white; }
  39. .providerMetadata { font-weight: bold; margin-bottom: 0.5em; }
  40. .providerMetadataValue { font-weight: normal; }
  41. </style>
  42. </head>
  43. <body>
  44. <div id="top">
  45. <h1>Dojo.Storage Test</h1>
  46. </div>
  47. <div id="directoryContainer">
  48. <h2>All Namespaces:</h2>
  49. <select id="namespaceDirectory" size="3"></select>
  50. <h2>All Keys:</h2>
  51. <select id="directory" size="10">
  52. </select>
  53. <div id="templates">
  54. <a href="javascript:;" onclick="return TestStorage.saveBook()">Save Test Book (238K - Faust by Goethe)</a>
  55. <a href="javascript:;" onclick="return TestStorage.saveXML()">Save Test XML</a>
  56. </div>
  57. </div>
  58. <form id="storageForm">
  59. <h2>Save/Load Values:</h2>
  60. <div>
  61. <div id="providerMetadataContainer">
  62. <div class="providerMetadata">
  63. Supported:
  64. <span id="isSupported" class="providerMetadataValue">
  65. </span>
  66. </div>
  67. <div class="providerMetadata">
  68. Supports Persistence:
  69. <span id="isPersistent" class="providerMetadataValue">
  70. </span>
  71. </div>
  72. <div class="providerMetadata">
  73. Supports UI Configuration:
  74. <span id="hasUIConfig" class="providerMetadataValue">
  75. </span>
  76. </div>
  77. <div class="providerMetadata">
  78. Maximum Size:
  79. <span id="maximumSize" class="providerMetadataValue">
  80. </span>
  81. </div>
  82. <div class="providerMetadata">
  83. Value size:
  84. <span id="valueSize" class="providerMetadataValue">
  85. </span>
  86. </div>
  87. <div class="providerMetadata">
  88. More info:
  89. <span id="moreInfo" class="providerMetadataValue">
  90. </span>
  91. </div>
  92. </div>
  93. <div>
  94. Storage Provider:
  95. <span id="currentStorageProvider">None</span>
  96. </div>
  97. </div>
  98. <div id="storageNamespaceContainer">
  99. <label for="storageNamespace">
  100. Namespace:
  101. </label>
  102. <input type="text" id="storageNamespace" name="storageNamespace" size="40" disabled="true">
  103. </div>
  104. <div id="storageKeyContainer">
  105. <label for="storageKey">
  106. Key:
  107. </label>
  108. <input type="text" id="storageKey" name="storageKey" size="40" disabled="true">
  109. </div>
  110. <div id="storageValueContainer">
  111. <label for="storageValue">
  112. Value:
  113. </label>
  114. <textarea id="storageValue" name="storageValue" disabled="true"></textarea>
  115. </div>
  116. <div id="buttonContainer">
  117. <button id="loadButton" disabled="true">Load</button>
  118. <button id="saveButton" disabled="true">Save</button>
  119. <button id="removeButton" disabled="true">Remove</button>
  120. <button id="clearNamespaceButton" disabled="true">Clear Namespace</button>
  121. <button id="configureButton" disabled="true">Configure</button>
  122. </div>
  123. </form>
  124. </body>
  125. </html>