38
38
< div id ="logo " class ="centered "> < img src ="resources/logo.png " ald ="jQuery::dForm " /> </ div >
39
39
< div id ="menu " class ="centered full ui-widget-content ui-corner-all ">
40
40
< div class ="padsmall ">
41
- < a href ="index.html " > About </ a > |
42
- < a href ="index.html "> Examples</ a > |
43
- < a href ="index.html " > jQuery UI </ a > |
44
- < a href ="index.html " > Try it </ a > |
45
- < a href =""> Wiki</ a >
41
+ < a href ="#plugin " > The plugin </ a > |
42
+ < a href ="#examples "> Examples</ a > |
43
+ < a href ="#about " > About </ a > |
44
+ < a target =" _blank " href ="http://github.com/daffl/jquery.dform/downloads " > Download </ a > |
45
+ < a target =" _blank " href ="http://github.com/daffl/jquery.dform/wiki "> Wiki</ a >
46
46
</ div >
47
47
</ div >
48
+ < a name ="plugin "> </ a >
48
49
< h2 > The plugin</ h2 >
49
50
< p > The jQuery.dForm plugin allows you to create your HTML forms programmatically from
50
51
JavaScript objects (and therefore JSON, too).</ p >
@@ -87,15 +88,14 @@ <h2>What it is for</h2>
87
88
< p > You should try this plugin if you want to</ p >
88
89
< ul >
89
90
< li > manage all your form related jQuery plugins in a unified way
90
- < br /> (many supported out of the box)</ li >
91
+ < br /> (some supported out of the box)</ li >
91
92
< li > scaffold forms from business objects of your server side framework</ li >
92
93
< li > have an easy way to include jQuery UI elements and JavaScript validation</ li >
93
- < li > write JavaScript code instead of HTML markup</ li >
94
+ < li > write JavaScript instead of HTML markup since your page doesn't run without JS anyway </ li >
94
95
</ ul >
95
96
96
- < h2 > About</ h2 >
97
- < p > Follow me on Twitter @daffl</ p >
98
-
97
+ < a name ="examples "> </ a >
98
+ < h2 > Examples</ h2 >
99
99
< h3 > Login form</ h3 >
100
100
< p > A simple login form. The hint in the username textfield will dissapear when
101
101
you focus it.</ p >
@@ -165,7 +165,7 @@ <h3>Registration form</h3>
165
165
[
166
166
{
167
167
"type" : "fieldset",
168
- "legend " : "User information",
168
+ "label " : "User information",
169
169
"elements" : [
170
170
{
171
171
"name" : "email",
@@ -187,7 +187,7 @@ <h3>Registration form</h3>
187
187
},
188
188
{
189
189
"type" : "fieldset",
190
- "legend " : "Address information",
190
+ "label " : "Address information",
191
191
"elements" : [
192
192
{
193
193
"name" : "name",
@@ -235,15 +235,21 @@ <h3>Registration form</h3>
235
235
</ div >
236
236
</ div >
237
237
238
- < h2 > jQuery UI</ h2 >
239
- < p > Support for the great jQuery UI Framework</ p >
238
+ < style type ="text/css ">
239
+ # uiform .ui-tabs { position : absolute; left : 400px ; top : 70px ; }
240
+ # uiform .ui-tabs div .ui-widget-content { width : 300px ; height : 70px ; }
241
+ </ style >
242
+ < h3 > jQuery UI</ h3 >
243
+ < p > The plugin comes with support for the great jQuery UI framework and its controls.
244
+ If the form has the ui-widget class jQuery UI button and input styles
245
+ will be applied to any matching type.</ p >
240
246
< div class ="exampleform tabs ">
241
247
< ul >
242
248
< li > < a href ="#uiform-div "> Form</ a > </ li >
243
249
< li > < a href ="#uiform-src "> JSON</ a > </ li >
244
250
</ ul >
245
251
< div id ="uiform-div ">
246
- < form id ="uiform " class ="dform "> </ form >
252
+ < form id ="uiform " class ="dform ui-widget "> </ form >
247
253
</ div >
248
254
< div id ="uiform-src ">
249
255
< pre class ="brush: js ">
@@ -252,9 +258,24 @@ <h2>jQuery UI</h2>
252
258
"method" : "get",
253
259
"elements" :
254
260
[
261
+ {
262
+ "name" : "textfield",
263
+ "label" : "Autocomplete",
264
+ "type" : "text",
265
+ "hint" : "Type 'A' or 'S'",
266
+ "autocomplete" :
267
+ {
268
+ "source" : [ "Apple", "Acer", "Sony", "Summer" ]
269
+ }
270
+ },
271
+ {
272
+ "label" : "A themed submit button",
273
+ "type" : "submit",
274
+ "value" : "Login"
275
+ },
255
276
{
256
277
"name" : "date",
257
- "label" : "Pick a date ",
278
+ "label" : "Datepicker ",
258
279
"type" : "text",
259
280
"datepicker" : { "showOn" : "button" }
260
281
},
@@ -264,33 +285,45 @@ <h2>jQuery UI</h2>
264
285
"range" : true,
265
286
"label" : "Slider"
266
287
},
267
- {
268
- "label" : "A themed button",
269
- "type" : "submit",
270
- "value" : "Login"
271
- },
272
288
{
273
289
"label" : "Some progress",
274
290
"type" : "progressbar",
275
291
"value" : 40
276
292
},
277
293
{
278
294
"type" : "tabs",
279
- "label" : "UI Tabs",
295
+ "resizable" :
296
+ {
297
+ "minHeight" : 150,
298
+ "minWidth" : 300
299
+ },
280
300
"tabs" :
281
301
{
282
302
"tab-1" :
283
303
{
284
304
"title" : "Tab no 1",
285
305
"elements" :
286
306
[
307
+ {
308
+ "name" : "textfield",
309
+ "label" : "Just a textfield in jQuery UI tabs",
310
+ "type" : "text"
311
+ }
287
312
]
288
313
},
289
314
"tab-2" :
290
315
{
291
316
"title" : "Tab no 1",
292
317
"elements" :
293
318
[
319
+ {
320
+ "type" : "html",
321
+ "html" : "Some html in tab 2"
322
+ },
323
+ {
324
+ "type" : "submit",
325
+ "value" : "Submit"
326
+ }
294
327
]
295
328
}
296
329
}
@@ -300,6 +333,13 @@ <h2>jQuery UI</h2>
300
333
</ pre >
301
334
</ div >
302
335
</ div >
336
+
337
+ < a name ="about "> </ a >
338
+ < h2 > About</ h2 >
339
+ < p > Download the < a target ="_blank " href ="http://github.com/daffl/jquery.dform/downloads "> jQuery.dForm package</ a > </ p >
340
+ < p > Visit the project page on < a target ="_blank " href ="http://github.com/daffl/jquery.dform "> GitHub</ a > </ p >
341
+ < p > Read more about extending and customizing the plugin in the < a target ="_blank " href ="http://github.com/daffl/jquery.dform/wiki "> Wiki</ a > </ p >
342
+ < p > Follow < a target ="_blank " href ="http://twitter.com/daffl "> @daffl</ a > on Twitter</ p >
303
343
</ div >
304
344
</ body >
305
345
</ html >
0 commit comments