<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxForm"></a>mxForm</h1><divclass=CBody><p>A simple class for creating HTML forms.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxForm">mxForm</a></td><tdclass=SDescription>A simple class for creating HTML forms.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxForm.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxForm.mxForm"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxForm</a></td><tdclass=SDescription>Creates a HTML table using the specified classname.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxForm.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxForm.table"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">table</a></td><tdclass=SDescription>Holds the DOM node that represents the table.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxForm.body"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">body</a></td><tdclass=SDescription>Holds the DOM node that represents the tbody (table body). </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxForm.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxForm.getTable"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">getTable</a></td><tdclass=SDescription>Returns the table that contains this form.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxForm.addButtons"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">addButtons</a></td><tdclass=SDescription>Helper method to add an OK and Cancel button using the respective functions.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxForm.addText"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">addText</a></td><tdclass=SDescription>Adds a textfield for the given name and value and returns the textfield.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxForm.addCheckbox"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">addCheckbox</a></td><tdclass=SDescription>Adds a checkbox for the given name and value and returns the textfield.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxForm.addTextarea"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">addTextarea</a></td><tdclass=SDescription>Adds a textarea for the given name and value and returns the textarea.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxForm.addCombo"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">addCombo</a></td><tdclass=SDescription>Adds a combo for the given name and returns the combo.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxForm.addOption"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">addOption</a></td><tdclass=SDescription>Adds an option for the given label to the specified combo.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxForm.addField"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">addField</a></td><tdclass=SDescription>Adds a new row with the name and the input field in two columns and returns the given input.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.mxForm"></a>mxForm</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxForm(</td><tdclass=PParameternowrap>className</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a HTML table using the specified classname.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxForm.table"></a>table</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxForm.prototype.table</td></tr></table></blockquote><p>Holds the DOM node that represents the table.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxForm.body"></a>body</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxForm.prototype.body</td></tr></table></blockquote><p>Holds the DOM node that represents the tbody (table body). New rows can be added to this object using DOM API.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.getTable"></a>getTable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxForm.prototype.getTable = function()</td></tr></table></blockquote><p>Returns the table that contains this form.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addButtons"></a>addButtons</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addButtons = function(</td><tdclass=PParameternowrap>okFunct,</td></tr><tr><td></td><tdclass=PParameternowrap>cancelFunct</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Helper method to add an OK and Cancel button using the respective functions.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addText"></a>addText</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addText = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>value</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a textfield for the given name and value and returns the textfield.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addCheckbox"></a>addCheckbox</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addCheckbox = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>value</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a checkbox for the given name and value and returns the textfield.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addTextarea"></a>addTextarea</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addTextarea = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>value,</td></tr><tr><td></td><tdclass=PParameternowrap>rows</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a textarea for the given name and value and returns the textarea.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addCombo"></a>addCombo</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addCombo = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>isMultiSelect,</td></tr><tr><td></td><tdclass=PParameternowrap>size</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a combo for the given name and returns the combo.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addOption"></a>addOption</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addOption = function(</td><tdclass=PParameternowrap>combo,</td></tr><tr><td></td><tdclass=PParameternowrap>label,</td></tr><tr><td></td><tdclass=PParameternowrap>value,</td></tr><tr><td></td><tdclass=PParameternowrap>isSelected</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds an option for the given label to the specified combo.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxForm.addField"></a>addField</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addField = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>input</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a new row with the name and the input field in two columns and returns the given input.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxForm(</td><tdclass=PParameternowrap>className</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Creates a HTML table using the specified classname.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxForm.prototype.table</td></tr></table></blockquote>Holds the DOM node that represents the table.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxForm.prototype.body</td></tr></table></blockquote>Holds the DOM node that represents the tbody (table body). </div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxForm.prototype.getTable = function()</td></tr></table></blockquote>Returns the table that contains this form.</div></div><divclass=CToolTipid="tt5"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addButtons = function(</td><tdclass=PParameternowrap>okFunct,</td></tr><tr><td></td><tdclass=PParameternowrap>cancelFunct</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Helper method to add an OK and Cancel button using the respective functions.</div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addText = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>value</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds a textfield for the given name and value and returns the textfield.</div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addCheckbox = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>value</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds a checkbox for the given name and value and returns the textfield.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addTextarea = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>value,</td></tr><tr><td></td><tdclass=PParameternowrap>rows</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds a textarea for the given name and value and returns the textarea.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxForm.prototype.addCombo = function(</td><tdclass=PParameternowrap>name,</td></tr><tr><td></td><tdclass=PParameternowrap>isMultiSelect,</td></tr><tr><td></td><tdclass=PParameternowrap>size</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds a combo for the given name and returns the combo.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cel