+<div class="body-wrap" xmlns:ext="http://www.extjs.com"><div class="top-tools"><a class="inner-link" href="#Ext.form.Action.DirectSubmit-props"><img src="resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> <a class="inner-link" href="#Ext.form.Action.DirectSubmit-methods"><img src="resources/images/default/s.gif" class="item-icon icon-method">Methods</a> <a class="inner-link" href="#Ext.form.Action.DirectSubmit-events"><img src="resources/images/default/s.gif" class="item-icon icon-event">Events</a> <a class="inner-link" href="#Ext.form.Action.DirectSubmit-configs"><img src="resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> <a class="bookmark" href="../docs/?class=Ext.form.Action.DirectSubmit"><img src="resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> </div><div class="inheritance res-block"><pre class="res-block-inner"><a href="output/Ext.form.Action.html" ext:member="" ext:cls="Ext.form.Action">Action</a>
+ <img src="resources/elbow-end.gif"><a href="output/Ext.form.Action.Submit.html" ext:member="" ext:cls="Ext.form.Action.Submit">Action.Submit</a>
+ <img src="resources/elbow-end.gif">Action.DirectSubmit</pre></div><h1>Class <a href="source/Action.html#cls-Ext.form.Action.DirectSubmit">Ext.form.Action.DirectSubmit</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext.form</td></tr><tr><td class="label">Defined In:</td><td class="hd-info"><a href="source/Action.html#cls-Ext.form.Action.DirectSubmit">Action.js</a></td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/Action.html#cls-Ext.form.Action.DirectSubmit">Action.DirectSubmit</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info"><a href="output/Ext.form.Action.Submit.html" ext:cls="Ext.form.Action.Submit" ext:member="">Action.Submit</a></td></tr></table><div class="description"><p>Provides Ext.direct support for submitting form data.</p>
+<p>This example illustrates usage of Ext.Direct to <b>submit</b> a form through Ext.Direct.</p>
+<pre><code><b>var</b> myFormPanel = <b>new</b> Ext.form.FormPanel({
+ <i>// configs <b>for</b> FormPanel</i>
+ title: <em>'Basic Information'</em>,
+ renderTo: document.body,
+ width: 300, height: 160,
+ padding: 10,
+ buttons:[{
+ text: <em>'Submit'</em>,
+ handler: <b>function</b>(){
+ myFormPanel.getForm().submit({
+ params: {
+ foo: <em>'bar'</em>,
+ uid: 34
+ }
+ });
+ }
+ }],
+
+ <i>// configs apply to child items</i>
+ defaults: {anchor: <em>'100%'</em>},
+ defaultType: <em>'textfield'</em>,
+ items: [{
+ fieldLabel: <em>'Name'</em>,
+ name: <em>'name'</em>
+ },{
+ fieldLabel: <em>'Email'</em>,
+ name: <em>'email'</em>
+ },{
+ fieldLabel: <em>'Company'</em>,
+ name: <em>'company'</em>
+ }],
+
+ <i>// configs <b>for</b> BasicForm</i>
+ api: {
+ <i>// The server-side method to call <b>for</b> load() requests</i>
+ load: Profile.getBasicInfo,
+ <i>// The server-side must mark the submit handler as a <em>'formHandler'</em></i>
+ submit: Profile.updateBasicInfo
+ },
+ <i>// specify the order <b>for</b> the passed params</i>
+ paramOrder: [<em>'uid'</em>, <em>'foo'</em>]
+});</code></pre>
+The data packet sent to the server will resemble something like:
+<pre><code>{
+ <em>"action"</em>:<em>"Profile"</em>,<em>"method"</em>:<em>"updateBasicInfo"</em>,<em>"type"</em>:<em>"rpc"</em>,<em>"tid"</em>:<em>"6"</em>,
+ <em>"result"</em>:{
+ <em>"success"</em>:true,
+ <em>"id"</em>:{
+ <em>"extAction"</em>:<em>"Profile"</em>,<em>"extMethod"</em>:<em>"updateBasicInfo"</em>,
+ <em>"extType"</em>:<em>"rpc"</em>,<em>"extTID"</em>:<em>"6"</em>,<em>"extUpload"</em>:<em>"false"</em>,
+ <em>"name"</em>:<em>"Aaron Conran"</em>,<em>"email"</em>:<em>"aaron@extjs.com"</em>,<em>"company"</em>:<em>"Ext JS, LLC"</em>
+ }
+ }
+}</code></pre>
+The form will process a data packet returned by the server that is similar
+to the following:
+<pre><code><i>// sample success packet (batched requests)</i>
+[
+ {
+ <em>"action"</em>:<em>"Profile"</em>,<em>"method"</em>:<em>"updateBasicInfo"</em>,<em>"type"</em>:<em>"rpc"</em>,<em>"tid"</em>:3,
+ <em>"result"</em>:{
+ <em>"success"</em>:true
+ }
+ }
+]
+
+<i>// sample failure packet (one request)</i>
+{
+ <em>"action"</em>:<em>"Profile"</em>,<em>"method"</em>:<em>"updateBasicInfo"</em>,<em>"type"</em>:<em>"rpc"</em>,<em>"tid"</em>:<em>"6"</em>,
+ <em>"result"</em>:{
+ <em>"errors"</em>:{
+ <em>"email"</em>:<em>"already taken"</em>
+ },
+ <em>"success"</em>:false,
+ <em>"foo"</em>:<em>"bar"</em>
+ }
+}</code></pre>
+Also see the discussion in <a href="output/Ext.form.Action.DirectLoad.html" ext:cls="Ext.form.Action.DirectLoad">Ext.form.Action.DirectLoad</a>.</div><div class="hr"></div><a id="Ext.form.Action.DirectSubmit-configs"></a><h2>Config Options</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Config Options</th><th class="msource-header">Defined By</th></tr><tr class="config-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.form.Action.Submit-clientValidation"></a><b><a href="source/Action.html#cfg-Ext.form.Action.Submit-clientValidation">clientValidation</a></b> : boolean<div class="mdesc"><div class="short">Determines whether a Form's fields are validated