xml-form.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <title>XML Form</title>
  6. <!-- ExtJS -->
  7. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  8. <script type="text/javascript" src="../../ext-all.js"></script>
  9. <!-- Shared -->
  10. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  11. <!-- GC -->
  12. <script type="text/javascript" src="../shared/states.js"></script>
  13. <!-- Example -->
  14. <script type="text/javascript" src="xml-form.js"></script>
  15. </head>
  16. <body>
  17. <h1>Loading/Saving a Dynamic Form using XML</h1>
  18. <p>
  19. This is a very simple example of using XML for load and submit of data with an Ext dynamic form.
  20. </p>
  21. <p>
  22. Click "Load" to load the <a href="xml-form-data.xml">dummy XML data</a> from the server using an XmlReader.
  23. </p>
  24. <p>
  25. After loading the form, you will be able to hit submit. The submit action will make a post to the server,
  26. and the <a href="xml-form-errors.xml">dummy XML file</a> on the server with test server-side validation
  27. failure messages will be sent back. Those messages will be applied to the appropriate fields in the form.
  28. </p>
  29. <p>The js is not minified so it is readable. See <a href="xml-form.js">xml-form.js</a>.</p>
  30. <div id="form-ct"></div>
  31. </body>
  32. </html>