examples/form/dynamic.html
[roojs1] / examples / form / dynamic.html
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>Forms</title>
6    <link rel="stylesheet" type="text/css" href="../../cssX/roojs-all.css"/>
7     <link rel="stylesheet" type="text/css" href="../../cssX/xtheme-slate.css"/>
8
9      <script type="text/javascript" src="../../roojs-debug.js"></script>   
10      <script type="text/javascript" src="../../Roo/form/ComboBox.js"></script>        
11      
12   
13 <script type="text/javascript" src="states.js"></script>
14 <script type="text/javascript" src="dynamic.js"></script>
15 <link rel="stylesheet" type="text/css" href="forms.css" />
16
17 <!-- Common Styles for the examples -->
18 <link rel="stylesheet" type="text/css" href="../examples.css" />
19
20
21
22 <style>
23  
24 .roodocs-formblock
25 {
26     border:4px solid #CCCCCC;
27     padding:5px 0pt 5px 10px;
28
29 </style>
30 </head>
31 <body>
32 <script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
33 <h1>Dynamic Forms built with JavaScript</h1>
34 <p>
35     These forms do not do anything and have very little validation. They solely demonstrate
36     how you can use Ext Forms to build and layout forms on the fly.
37 </p>
38
39 <p>The js is not minified so it is readable. See 
40 <button type="button" onclick="RooDocs.viewSource.show('/dynamic.js')">dynamic.js</button> and 
41 <button type="button" onclick="RooDocs.viewSource.show('/dynamic.html')">dynamic.html</button>
42 .</p>
43
44 <div class="roodocs-formblock" style="width:280px;height:170px">
45     <h3 style="margin-bottom:5px;">Simple Form</h3>
46     <div id="form-ct"></div>
47 </div>
48 <br/>
49  
50
51 <div style="width:565px;" class="roodocs-formblock">
52     
53         <h3 style="margin-bottom:5px;">Multi-column and labels top</h3>
54         <div id="form-ct2"></div>
55     
56 </div>
57
58
59
60 <br/>
61 <div style="width:345px;"  class="roodocs-formblock">
62     <h3>Fieldsets, labels right and complex fields</h3>
63     <div id="form-ct3"></div>
64 </div>
65
66 <br/>
67 <div style="width:600px;" class="roodocs-formblock">
68         <h3 style="margin-bottom:5px;">Multi-column, nesting and fieldsets</h3>
69         <div id="form-ct4"> </div>
70 </div>
71
72 <div class="x-form-clear"></div>
73
74
75 <div style="width:345px;"  class="roodocs-formblock">
76     <h3>Display Form</h3>
77     <div id="form-ct5"></div>
78 </div>
79
80
81 </body>
82 </html>