Skip to content

Commit 6a47e30

Browse files
author
daffl
committed
Fixed option errors
1 parent 3cfe08c commit 6a47e30

17 files changed

+96
-89
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Title: Changelog
55
* Fixed issue #14, setting type attribute properly in IE
66
* Added <getValueAt>
77
* Added <i18n> support using the jQuery global plugin
8+
* Created <jQuery.dForm Google Group at http://groups.google.com/group/jquery-dform>
89

910
0.1.2:
1011
* Added <dformAttr> to add HTML attributes to elements

doc/files/dform-js.html

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

doc/files/dform-subscribers-js.html

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

doc/files2/changelog-txt.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Changelog"></a>Changelog</h1><div class=CBody><h4 class=CHeading>0.1.3</h4><ul><li>Added <a href="../files/dform-subscribers-js.html#form" class=LType id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">form</a> type to unify <a href="../files/dform-js.html#buildForm" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">buildForm</a> usage</li><li>Fixed issue #14, setting type attribute properly in IE</li><li>Added <a href="../files/dform-js.html#getValueAt" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">getValueAt</a></li><li>Added <a href="../files/dform-extensions-js.html#i18n" class=LSection id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">i18n</a> support using the jQuery global plugin</li></ul><h4 class=CHeading>0.1.2</h4><ul><li>Added &lt;dformAttr&gt; to add HTML attributes to elements</li><li>Moved <a href="../files/dform-extensions-js.html#placeholder" class=LSubscriber id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">placeholder</a> into a separate plugin</li><li>Added <a href="../files/dform-subscribers-js.html#reset" class=LType id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">reset</a> button type</li><li>Added dynamic form definition loading by passing a URL to the <a href="../files/dform-js.html#buildForm" class=LFunction id=link7 onMouseOver="ShowTip(event, 'tt2', 'link7')" onMouseOut="HideTip('tt2')">buildForm</a> plugin function</li><li>Added <a href="../files/dform-extensions-js.html#ajax" class=LSubscriber id=link8 onMouseOver="ShowTip(event, 'tt7', 'link8')" onMouseOut="HideTip('tt7')">ajax</a> subscriber using the <a href="http://jquery.malsup.com/form" class=LURL target=_top>jQuery form plugin</a></li><li>Added the <a href="../files/dform-js.html#defaultType" class=LFunction id=link9 onMouseOver="ShowTip(event, 'tt8', 'link9')" onMouseOut="HideTip('tt8')">defaultType</a> method to create any HTML element without having to register a type</li><li>Improved build process</li></ul><h4 class=CHeading>0.1.1</h4><ul><li>Separated type and subscriber functions</li><li>Added types <a href="../files/dform-subscribers-js.html#file" class=LType id=link10 onMouseOver="ShowTip(event, 'tt9', 'link10')" onMouseOut="HideTip('tt9')">file</a>, <a href="../files/dform-subscribers-js.html#container" class=LType id=link11 onMouseOver="ShowTip(event, 'tt10', 'link11')" onMouseOut="HideTip('tt10')">container</a>, <a href="../files/dform-subscribers-js.html#hidden" class=LType id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">hidden</a>, <a href="../files/dform-extensions-js.html#accordion" class=LType id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">accordion</a>, <a href="../files/dform-subscribers-js.html#checkboxes" class=LType id=link14 onMouseOver="ShowTip(event, 'tt13', 'link14')" onMouseOut="HideTip('tt13')">checkboxes</a> and <a href="../files/dform-subscribers-js.html#radiobuttons" class=LType id=link15 onMouseOver="ShowTip(event, 'tt14', 'link15')" onMouseOut="HideTip('tt14')">radiobuttons</a></li><li>Added auto class generation based on element type</li><li>Finished jQuery UI <a href="../files/dform-extensions-js.html#accordion" class=LType id=link16 onMouseOver="ShowTip(event, 'tt12', 'link16')" onMouseOut="HideTip('tt12')">accordion</a> and unified with <a href="../files/dform-extensions-js.html#tabs" class=LType id=link17 onMouseOver="ShowTip(event, 'tt15', 'link17')" onMouseOut="HideTip('tt15')">tabs</a> usage</li><li>Switched documentation to <a href="http://naturaldocs.org" class=LURL target=_top>Natualdocs</a></li><li>Added build.xml for generating documentation and minifying JavaScript</li></ul><h4 class=CHeading>0.1</h4><ul><li>Initial release</li></ul></div></div></div>
14+
<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Changelog"></a>Changelog</h1><div class=CBody><h4 class=CHeading>0.1.3</h4><ul><li>Added <a href="../files/dform-subscribers-js.html#form" class=LType id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">form</a> type to unify <a href="../files/dform-js.html#buildForm" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">buildForm</a> usage</li><li>Fixed issue #14, setting type attribute properly in IE</li><li>Added <a href="../files/dform-js.html#getValueAt" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">getValueAt</a></li><li>Added <a href="../files/dform-extensions-js.html#i18n" class=LSection id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">i18n</a> support using the jQuery global plugin</li><li>Created <a href="http://groups.google.com/group/jquery-dform" class=LURL target=_top>jQuery.dForm Google Group</a></li></ul><h4 class=CHeading>0.1.2</h4><ul><li>Added &lt;dformAttr&gt; to add HTML attributes to elements</li><li>Moved <a href="../files/dform-extensions-js.html#placeholder" class=LSubscriber id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">placeholder</a> into a separate plugin</li><li>Added <a href="../files/dform-subscribers-js.html#reset" class=LType id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">reset</a> button type</li><li>Added dynamic form definition loading by passing a URL to the <a href="../files/dform-js.html#buildForm" class=LFunction id=link7 onMouseOver="ShowTip(event, 'tt2', 'link7')" onMouseOut="HideTip('tt2')">buildForm</a> plugin function</li><li>Added <a href="../files/dform-extensions-js.html#ajax" class=LSubscriber id=link8 onMouseOver="ShowTip(event, 'tt7', 'link8')" onMouseOut="HideTip('tt7')">ajax</a> subscriber using the <a href="http://jquery.malsup.com/form" class=LURL target=_top>jQuery form plugin</a></li><li>Added the <a href="../files/dform-js.html#defaultType" class=LFunction id=link9 onMouseOver="ShowTip(event, 'tt8', 'link9')" onMouseOut="HideTip('tt8')">defaultType</a> method to create any HTML element without having to register a type</li><li>Improved build process</li></ul><h4 class=CHeading>0.1.1</h4><ul><li>Separated type and subscriber functions</li><li>Added types <a href="../files/dform-subscribers-js.html#file" class=LType id=link10 onMouseOver="ShowTip(event, 'tt9', 'link10')" onMouseOut="HideTip('tt9')">file</a>, <a href="../files/dform-subscribers-js.html#container" class=LType id=link11 onMouseOver="ShowTip(event, 'tt10', 'link11')" onMouseOut="HideTip('tt10')">container</a>, <a href="../files/dform-subscribers-js.html#hidden" class=LType id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">hidden</a>, <a href="../files/dform-extensions-js.html#accordion" class=LType id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">accordion</a>, <a href="../files/dform-subscribers-js.html#checkboxes" class=LType id=link14 onMouseOver="ShowTip(event, 'tt13', 'link14')" onMouseOut="HideTip('tt13')">checkboxes</a> and <a href="../files/dform-subscribers-js.html#radiobuttons" class=LType id=link15 onMouseOver="ShowTip(event, 'tt14', 'link15')" onMouseOut="HideTip('tt14')">radiobuttons</a></li><li>Added auto class generation based on element type</li><li>Finished jQuery UI <a href="../files/dform-extensions-js.html#accordion" class=LType id=link16 onMouseOver="ShowTip(event, 'tt12', 'link16')" onMouseOut="HideTip('tt12')">accordion</a> and unified with <a href="../files/dform-extensions-js.html#tabs" class=LType id=link17 onMouseOver="ShowTip(event, 'tt15', 'link17')" onMouseOut="HideTip('tt15')">tabs</a> usage</li><li>Switched documentation to <a href="http://naturaldocs.org" class=LURL target=_top>Natualdocs</a></li><li>Added build.xml for generating documentation and minifying JavaScript</li></ul><h4 class=CHeading>0.1</h4><ul><li>Initial release</li></ul></div></div></div>
1515

1616
</div><!--Content-->
1717

@@ -26,7 +26,7 @@
2626

2727

2828
<!--START_ND_TOOLTIPS-->
29-
<div class=CToolTip id="tt1"><div class=CType>Type function that creates a form. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildForm : function(</td><td class=PParameter nowrap>options,</td></tr><tr><td></td><td class=PParameter nowrap>params,</td></tr><tr><td></td><td class=PParameter nowrap>callback</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Build an entire form, if the current element is a form or append a new form if the root element does not have a type given. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getValueAt : function(</td><td class=PParameter nowrap>object,</td></tr><tr><td></td><td class=PParameter nowrap>path</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the value in an object based on the given dot separated path or false if not found. </div></div><div class=CToolTip id="tt4"><div class=CSection>Localization is supported by using the jQuery Global plugin.</div></div><div class=CToolTip id="tt5"><div class=CSubscriber>Adds a default default value to text elements.</div></div><div class=CToolTip id="tt6"><div class=CType>Creates a form reset button</div></div><div class=CToolTip id="tt7"><div class=CSubscriber>If the current element is a form, it will be turned into a dynamic form that can be submitted asynchronously.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>defaultType : function(</td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>A function that is called, when no registered type has been found. </div></div><div class=CToolTip id="tt9"><div class=CType>Returns a file upload input element</div></div><div class=CToolTip id="tt10"><div class=CType>Returns an empty container (div) for general use</div></div><div class=CToolTip id="tt11"><div class=CType>Creates a hidden input field</div></div><div class=CToolTip id="tt12"><div class=CType>Creates an element container for a jQuery UI accordion.</div></div><div class=CToolTip id="tt13"><div class=CType>Returns an empty container for a checkbox list</div></div><div class=CToolTip id="tt14"><div class=CType>Returns an empty container for a radiobutton list</div></div><div class=CToolTip id="tt15"><div class=CType>Returns a container for jQuery UI tabs element.</div></div><!--END_ND_TOOLTIPS-->
29+
<div class=CToolTip id="tt1"><div class=CType>Type function that creates a form. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildForm : function(</td><td class=PParameter nowrap>options,</td></tr><tr><td></td><td class=PParameter nowrap>params,</td></tr><tr><td></td><td class=PParameter nowrap>callback</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Build an entire form if the current element is a form and no type has been given for the root element or append a new form if the root element does not have a type given. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getValueAt : function(</td><td class=PParameter nowrap>object,</td></tr><tr><td></td><td class=PParameter nowrap>path</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the value in an object based on the given dot separated path or false if not found. </div></div><div class=CToolTip id="tt4"><div class=CSection>Localization is supported by using the jQuery Global plugin.</div></div><div class=CToolTip id="tt5"><div class=CSubscriber>Adds a default default value to text elements.</div></div><div class=CToolTip id="tt6"><div class=CType>Creates a form reset button</div></div><div class=CToolTip id="tt7"><div class=CSubscriber>If the current element is a form, it will be turned into a dynamic form that can be submitted asynchronously.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>defaultType : function(</td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>A function that is called, when no registered type has been found. </div></div><div class=CToolTip id="tt9"><div class=CType>Returns a file upload input element</div></div><div class=CToolTip id="tt10"><div class=CType>Returns an empty container (div) for general use</div></div><div class=CToolTip id="tt11"><div class=CType>Creates a hidden input field</div></div><div class=CToolTip id="tt12"><div class=CType>Creates an element container for a jQuery UI accordion.</div></div><div class=CToolTip id="tt13"><div class=CType>Returns an empty container for a checkbox list</div></div><div class=CToolTip id="tt14"><div class=CType>Returns an empty container for a radiobutton list</div></div><div class=CToolTip id="tt15"><div class=CType>Returns a container for jQuery UI tabs element.</div></div><!--END_ND_TOOLTIPS-->
3030

3131

3232

doc/files2/examples-txt.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@
160160
&quot;america&quot; : &quot;America&quot;,
161161
&quot;europe&quot; :
162162
{
163-
&quot;selected&quot; : &quot;true&quot;,
164-
&quot;id&quot; : &quot;europe-option&quot;,
165-
&quot;value&quot; : &quot;Europe&quot;
163+
&quot;selected&quot; : &quot;true&quot;,
164+
&quot;id&quot; : &quot;europe-option&quot;,
165+
&quot;value&quot; : &quot;europe&quot;,
166+
&quot;html&quot; : &quot;Europe&quot;
166167
},
167168
&quot;asia&quot; : &quot;Asia&quot;,
168169
&quot;africa&quot; : &quot;Africa&quot;,

doc/files2/readme-txt.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$(&quot;#myform&quot;).buildForm(formdata);
3333

3434
// Or to load the form definition via AJAX
35-
$(&quot;#myform&quot;).buildForm(&quot;http://example.com/myform.json&quot;);</pre></blockquote><h4 class=CHeading>How to get it</h4><p><a href="http://github.com/downloads/daffl/jquery.dform/jquery.dform-0.1.2.tar.gz" class=LURL target=_top>Download jQuery.dForm 0.1.2</a></p><h4 class=CHeading>What it is for</h4><p>There are many server side web frameworks that support HTML form generation, but you often end up mixing client (e.g.&nbsp; JavaScript validation) and server side processing concerns together.</p><p>This plugin moves the generation of forms entirely on the client side so that the server just has to provide a JavaScript object (usually as JSON) that contains all the information needed to create this form.&nbsp; It is easily extensible for custom form elements and properties.</p><p>You should try this plugin if you want to</p><ul><li>manage all your form related jQuery plugins in a unified way (jQuery UI and the Validation plugin supported out of the box)</li><li>scaffold forms from business objects of your server side framework</li><li>have an easy way to include jQuery UI elements and JavaScript validation</li><li>write JavaScript instead of HTML markup since your page doesn&rsquo;t run without JS anyway</li></ul><h4 class=CHeading>Contribute</h4><ul><li>Visit the project on <a href="http://github.com/daffl/jquery.dform/" class=LURL target=_top>GitHub</a></li><li>Follow <a href="http://twitter.com/daffl" class=LURL target=_top>@daffl</a> on Twitter</li></ul><h4 class=CHeading>Examples</h4><p>See some live demos at the <a href="examples-txt.html#Examples" class=LSection id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">Examples</a> page.</p></div></div></div>
35+
$(&quot;#myform&quot;).buildForm(&quot;http://example.com/myform.json&quot;);</pre></blockquote><h4 class=CHeading>How to get it</h4><p><a href="http://github.com/downloads/daffl/jquery.dform/jquery.dform-0.1.2.tar.gz" class=LURL target=_top>Download jQuery.dForm 0.1.2</a></p><h4 class=CHeading>How to get involved</h4><ul><li>Visit the <a href="http://groups.google.com/group/jquery-dform" class=LURL target=_top>jQuery.dForm Google Group</a></li><li>Fork the project on <a href="http://github.com/daffl/jquery.dform/" class=LURL target=_top>GitHub</a></li><li>Follow <a href="http://twitter.com/daffl" class=LURL target=_top>@daffl</a> on Twitter</li></ul><h4 class=CHeading>What it is for</h4><p>There are many server side web frameworks that support HTML form generation, but you often end up mixing client (e.g.&nbsp; JavaScript validation) and server side processing concerns together.</p><p>This plugin moves the generation of forms entirely on the client side so that the server just has to provide a JavaScript object (usually as JSON) that contains all the information needed to create this form.&nbsp; It is easily extensible for custom form elements and properties.</p><p>You should try this plugin if you want to</p><ul><li>manage all your form related jQuery plugins in a unified way (jQuery UI and the Validation plugin supported out of the box)</li><li>scaffold forms from business objects of your server side framework</li><li>have an easy way to include jQuery UI elements and JavaScript validation</li><li>write JavaScript instead of HTML markup since your page doesn&rsquo;t run without JS anyway</li></ul><h4 class=CHeading>Examples</h4><p>See some live demos at the <a href="examples-txt.html#Examples" class=LSection id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">Examples</a> page.</p></div></div></div>
3636

3737
</div><!--Content-->
3838

doc/index/Functions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
<!--START_ND_TOOLTIPS-->
24-
<div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildForm : function(</td><td class=PParameter nowrap>options,</td></tr><tr><td></td><td class=PParameter nowrap>params,</td></tr><tr><td></td><td class=PParameter nowrap>callback</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Build an entire form, if the current element is a form or append a new form if the root element does not have a type given. </div></div><!--END_ND_TOOLTIPS-->
24+
<div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildForm : function(</td><td class=PParameter nowrap>options,</td></tr><tr><td></td><td class=PParameter nowrap>params,</td></tr><tr><td></td><td class=PParameter nowrap>callback</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Build an entire form if the current element is a form and no type has been given for the root element or append a new form if the root element does not have a type given. </div></div><!--END_ND_TOOLTIPS-->
2525

2626

2727
<!--START_ND_TOOLTIPS-->

0 commit comments

Comments
 (0)