Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <title>XmlTreeLoader Example</title>
  5. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  6. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  7. <link rel="stylesheet" type="text/css" href="xml-tree-loader.css" />
  8. <script type="text/javascript" src="../../ext-all.js"></script>
  9. <script type="text/javascript" src="../ux/XmlTreeLoader.js"></script>
  10. <script type="text/javascript" src="xml-tree-loader.js"></script>
  11. <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
  12. <script type="text/javascript" src="../shared/examples.js"></script>
  13. </head>
  14. <body>
  15. <h1>XmlTreeLoader Example</h1>
  16. <p>Demonstrates extending the native <tt>Ext.tree.TreeLoader</tt> to support loading XML data via the
  17. custom <a href="../ux/XmlTreeLoader.js">Ext.ux.tree.XmlTreeLoader</a> class.</p>
  18. <p>The XmlTreeLoader is then further extended to demonstrate additional custom, application-specific node processing.</p>
  19. <p>The js is not minified so it is readable. See <a href="xml-tree-loader.js">xml-tree-loader.js</a>.</p>
  20. <p>This demo loads an XML file in the following format:</p>
  21. <p>
  22. <pre style="font-size:11px;">
  23. &lt;authors>
  24. &lt;author first="Fyodor" last="Dostoevsky" gender="m">
  25. &lt;book title="Crime and Punishment" published="1866" url="http://...">
  26. Raskolnikov, a destitute and desperate former student...
  27. &lt;/book>
  28. ...
  29. &lt;/author>
  30. ...
  31. &lt;/authors>
  32. </pre>
  33. </p>
  34. <div id="tree"></div>
  35. </body>
  36. </html>