Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.form.action.DirectSubmit.js
1 Ext.data.JsonP.Ext_form_action_DirectSubmit({
2   "tagname": "class",
3   "name": "Ext.form.action.DirectSubmit",
4   "doc": "<p>Provides Ext.direct support for submitting form data.</p>\n\n\n<p>This example illustrates usage of Ext.direct.Direct to <b>submit</b> a form through Ext.Direct.</p>\n\n\n<pre><code>var myFormPanel = new Ext.form.Panel({\n    // configs for FormPanel\n    title: 'Basic Information',\n    renderTo: document.body,\n    width: 300, height: 160,\n    padding: 10,\n    buttons:[{\n        text: 'Submit',\n        handler: function(){\n            myFormPanel.getForm().submit({\n                params: {\n                    foo: 'bar',\n                    uid: 34\n                }\n            });\n        }\n    }],\n\n    // configs apply to child items\n    defaults: {anchor: '100%'},\n    defaultType: 'textfield',\n    items: [{\n        fieldLabel: 'Name',\n        name: 'name'\n    },{\n        fieldLabel: 'Email',\n        name: 'email'\n    },{\n        fieldLabel: 'Company',\n        name: 'company'\n    }],\n\n    // configs for BasicForm\n    api: {\n        // The server-side method to call for load() requests\n        load: Profile.getBasicInfo,\n        // The server-side must mark the submit handler as a 'formHandler'\n        submit: Profile.updateBasicInfo\n    },\n    // specify the order for the passed params\n    paramOrder: ['uid', 'foo']\n});\n</code></pre>\n\n\n<p>The data packet sent to the server will resemble something like:</p>\n\n<pre><code>{\n    \"action\":\"Profile\",\"method\":\"updateBasicInfo\",\"type\":\"rpc\",\"tid\":\"6\",\n    \"result\":{\n        \"success\":true,\n        \"id\":{\n            \"extAction\":\"Profile\",\"extMethod\":\"updateBasicInfo\",\n            \"extType\":\"rpc\",\"extTID\":\"6\",\"extUpload\":\"false\",\n            \"name\":\"Aaron Conran\",\"email\":\"aaron@sencha.com\",\"company\":\"Sencha Inc.\"\n        }\n    }\n}\n</code></pre>\n\n\n<p>The form will process a data packet returned by the server that is similar\nto the following:</p>\n\n<pre><code>// sample success packet (batched requests)\n[\n    {\n        \"action\":\"Profile\",\"method\":\"updateBasicInfo\",\"type\":\"rpc\",\"tid\":3,\n        \"result\":{\n            \"success\":true\n        }\n    }\n]\n\n// sample failure packet (one request)\n{\n        \"action\":\"Profile\",\"method\":\"updateBasicInfo\",\"type\":\"rpc\",\"tid\":\"6\",\n        \"result\":{\n            \"errors\":{\n                \"email\":\"already taken\"\n            },\n            \"success\":false,\n            \"foo\":\"bar\"\n        }\n}\n</code></pre>\n\n\n<p>Also see the discussion in <a href=\"#/api/Ext.form.action.DirectLoad\" rel=\"Ext.form.action.DirectLoad\" class=\"docClass\">Ext.form.action.DirectLoad</a>.</p>\n",
5   "extends": "Ext.form.action.Submit",
6   "mixins": [
7
8   ],
9   "alternateClassNames": [
10     "Ext.form.Action.DirectSubmit"
11   ],
12   "xtype": null,
13   "author": null,
14   "docauthor": null,
15   "singleton": false,
16   "private": false,
17   "cfg": [
18     {
19       "tagname": "cfg",
20       "name": "clientValidation",
21       "member": "Ext.form.action.Submit",
22       "type": "boolean",
23       "doc": "<p>Determines whether a Form's fields are validated\nin a final call to <a href=\"#/api/Ext.form.Basic-method-isValid\" rel=\"Ext.form.Basic-method-isValid\" class=\"docClass\">isValid</a> prior to submission.\nPass <tt>false</tt> in the Form's submit options to prevent this. Defaults to true.</p>\n",
24       "private": false,
25       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Submit.js",
26       "linenr": 64,
27       "html_filename": "Submit.html",
28       "href": "Submit.html#Ext-form-action-Submit-cfg-clientValidation",
29       "shortDoc": "Determines whether a Form's fields are validated\nin a final call to isValid prior to submission.\nPass false in the Fo..."
30     },
31     {
32       "tagname": "cfg",
33       "name": "failure",
34       "member": "Ext.form.action.Action",
35       "type": "Function",
36       "doc": "<p>The function to call when a failure packet was received, or when an\nerror ocurred in the Ajax communication.\nThe function is passed the following parameters:<ul class=\"mdetail-params\">\n<li><b>form</b> : Ext.form.Basic<div class=\"sub-desc\">The form that requested the action</div></li>\n<li><b>action</b> : Ext.form.action.Action<div class=\"sub-desc\">The Action class. If an Ajax\nerror ocurred, the failure type will be in <a href=\"#/api/Ext.form.action.DirectSubmit-property-failureType\" rel=\"Ext.form.action.DirectSubmit-property-failureType\" class=\"docClass\">failureType</a>. The <a href=\"#/api/Ext.form.action.DirectSubmit-property-result\" rel=\"Ext.form.action.DirectSubmit-property-result\" class=\"docClass\">result</a>\nproperty of this object may be examined to perform custom postprocessing.</div></li>\n</ul></p>\n",
37       "private": false,
38       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
39       "linenr": 70,
40       "html_filename": "Action2.html",
41       "href": "Action2.html#Ext-form-action-Action-cfg-failure",
42       "shortDoc": "The function to call when a failure packet was received, or when an\nerror ocurred in the Ajax communication.\nThe func..."
43     },
44     {
45       "tagname": "cfg",
46       "name": "form",
47       "member": "Ext.form.action.Action",
48       "type": "Ext.form.Basic",
49       "doc": "<p>The <a href=\"#/api/Ext.form.Basic\" rel=\"Ext.form.Basic\" class=\"docClass\">BasicForm</a> instance that\nis invoking this Action. Required.</p>\n",
50       "private": false,
51       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
52       "linenr": 20,
53       "html_filename": "Action2.html",
54       "href": "Action2.html#Ext-form-action-Action-cfg-form"
55     },
56     {
57       "tagname": "cfg",
58       "name": "headers",
59       "member": "Ext.form.action.Action",
60       "type": "Object",
61       "doc": "<p>Extra headers to be sent in the AJAX request for submit and load actions. See\n<a href=\"#/api/Ext.data.Connection--headers\" rel=\"Ext.data.Connection--headers\" class=\"docClass\">Ext.data.Connection.headers</a>.</p>\n\n",
62       "private": false,
63       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
64       "linenr": 49,
65       "html_filename": "Action2.html",
66       "href": "Action2.html#Ext-form-action-Action-cfg-headers"
67     },
68     {
69       "tagname": "cfg",
70       "name": "method",
71       "member": "Ext.form.action.Action",
72       "type": "String",
73       "doc": "<p>The HTTP method to use to access the requested URL. Defaults to the\n<a href=\"#/api/Ext.form.Basic-cfg-method\" rel=\"Ext.form.Basic-cfg-method\" class=\"docClass\">BasicForm's method</a>, or 'POST' if not specified.</p>\n",
74       "private": false,
75       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
76       "linenr": 37,
77       "html_filename": "Action2.html",
78       "href": "Action2.html#Ext-form-action-Action-cfg-method"
79     },
80     {
81       "tagname": "cfg",
82       "name": "params",
83       "member": "Ext.form.action.Action",
84       "type": "Object/String",
85       "doc": "<p>Extra parameter values to pass. These are added to the Form's\n<a href=\"#/api/Ext.form.Basic-cfg-baseParams\" rel=\"Ext.form.Basic-cfg-baseParams\" class=\"docClass\">Ext.form.Basic.baseParams</a> and passed to the specified URL along with the Form's\ninput fields.</p>\n\n\n<p>Parameters are encoded as standard HTTP parameters using <a href=\"#/api/Ext-method-urlEncode\" rel=\"Ext-method-urlEncode\" class=\"docClass\">Ext.Object.toQueryString</a>.</p>\n\n",
86       "private": false,
87       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
88       "linenr": 42,
89       "html_filename": "Action2.html",
90       "href": "Action2.html#Ext-form-action-Action-cfg-params",
91       "shortDoc": "Extra parameter values to pass. These are added to the Form's\nExt.form.Basic.baseParams and passed to the specified U..."
92     },
93     {
94       "tagname": "cfg",
95       "name": "reset",
96       "member": "Ext.form.action.Action",
97       "type": "Boolean",
98       "doc": "<p>When set to <tt><b>true</b></tt>, causes the Form to be\n<a href=\"#/api/Ext.form.Basic-method-reset\" rel=\"Ext.form.Basic-method-reset\" class=\"docClass\">reset</a> on Action success. If specified, this happens\nbefore the <a href=\"#/api/Ext.form.action.DirectSubmit-cfg-success\" rel=\"Ext.form.action.DirectSubmit-cfg-success\" class=\"docClass\">success</a> callback is called and before the Form's\n<a href=\"#/api/Ext.form.Basic-event-actioncomplete\" rel=\"Ext.form.Basic-event-actioncomplete\" class=\"docClass\">actioncomplete</a> event fires.</p>\n",
99       "private": false,
100       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
101       "linenr": 30,
102       "html_filename": "Action2.html",
103       "href": "Action2.html#Ext-form-action-Action-cfg-reset",
104       "shortDoc": "When set to true, causes the Form to be\nreset on Action success. If specified, this happens\nbefore the success callba..."
105     },
106     {
107       "tagname": "cfg",
108       "name": "scope",
109       "member": "Ext.form.action.Action",
110       "type": "Object",
111       "doc": "<p>The scope in which to call the configured <tt>success</tt> and <tt>failure</tt>\ncallback functions (the <tt>this</tt> reference for the callback functions).</p>\n",
112       "private": false,
113       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
114       "linenr": 81,
115       "html_filename": "Action2.html",
116       "href": "Action2.html#Ext-form-action-Action-cfg-scope",
117       "shortDoc": "The scope in which to call the configured success and failure\ncallback functions (the this reference for the callback..."
118     },
119     {
120       "tagname": "cfg",
121       "name": "submitEmptyText",
122       "member": "Ext.form.action.Action",
123       "type": "Boolean",
124       "doc": "<p>If set to <tt>true</tt>, the emptyText value will be sent with the form\nwhen it is submitted. Defaults to <tt>true</tt>.</p>\n",
125       "private": false,
126       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
127       "linenr": 96,
128       "html_filename": "Action2.html",
129       "href": "Action2.html#Ext-form-action-Action-cfg-submitEmptyText"
130     },
131     {
132       "tagname": "cfg",
133       "name": "success",
134       "member": "Ext.form.action.Action",
135       "type": "Function",
136       "doc": "<p>The function to call when a valid success return packet is received.\nThe function is passed the following parameters:<ul class=\"mdetail-params\">\n<li><b>form</b> : Ext.form.Basic<div class=\"sub-desc\">The form that requested the action</div></li>\n<li><b>action</b> : Ext.form.action.Action<div class=\"sub-desc\">The Action class. The <a href=\"#/api/Ext.form.action.DirectSubmit-property-result\" rel=\"Ext.form.action.DirectSubmit-property-result\" class=\"docClass\">result</a>\nproperty of this object may be examined to perform custom postprocessing.</div></li>\n</ul></p>\n",
137       "private": false,
138       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
139       "linenr": 61,
140       "html_filename": "Action2.html",
141       "href": "Action2.html#Ext-form-action-Action-cfg-success",
142       "shortDoc": "The function to call when a valid success return packet is received.\nThe function is passed the following parameters:..."
143     },
144     {
145       "tagname": "cfg",
146       "name": "timeout",
147       "member": "Ext.form.action.Action",
148       "type": "Number",
149       "doc": "<p>The number of seconds to wait for a server response before\nfailing with the <a href=\"#/api/Ext.form.action.DirectSubmit-property-failureType\" rel=\"Ext.form.action.DirectSubmit-property-failureType\" class=\"docClass\">failureType</a> as <a href=\"#/api/Ext.form.action.Action-property-CONNECT_FAILURE\" rel=\"Ext.form.action.Action-property-CONNECT_FAILURE\" class=\"docClass\">Ext.form.action.Action.CONNECT_FAILURE</a>. If not specified,\ndefaults to the configured <tt><a href=\"#/api/Ext.form.Basic-cfg-timeout\" rel=\"Ext.form.Basic-cfg-timeout\" class=\"docClass\">timeout</a></tt> of the\n<a href=\"#/api/Ext.form.action.DirectSubmit-cfg-form\" rel=\"Ext.form.action.DirectSubmit-cfg-form\" class=\"docClass\">form</a>.</p>\n",
150       "private": false,
151       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
152       "linenr": 54,
153       "html_filename": "Action2.html",
154       "href": "Action2.html#Ext-form-action-Action-cfg-timeout",
155       "shortDoc": "The number of seconds to wait for a server response before\nfailing with the failureType as Ext.form.action.Action.CON..."
156     },
157     {
158       "tagname": "cfg",
159       "name": "url",
160       "member": "Ext.form.action.Action",
161       "type": "String",
162       "doc": "<p>The URL that the Action is to invoke. Will default to the <a href=\"#/api/Ext.form.Basic-cfg-url\" rel=\"Ext.form.Basic-cfg-url\" class=\"docClass\">url</a>\nconfigured on the <a href=\"#/api/Ext.form.action.DirectSubmit-cfg-form\" rel=\"Ext.form.action.DirectSubmit-cfg-form\" class=\"docClass\">form</a>.</p>\n",
163       "private": false,
164       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
165       "linenr": 25,
166       "html_filename": "Action2.html",
167       "href": "Action2.html#Ext-form-action-Action-cfg-url"
168     },
169     {
170       "tagname": "cfg",
171       "name": "waitMsg",
172       "member": "Ext.form.action.Action",
173       "type": "String",
174       "doc": "<p>The message to be displayed by a call to <a href=\"#/api/Ext.window.MessageBox-method-wait\" rel=\"Ext.window.MessageBox-method-wait\" class=\"docClass\">Ext.window.MessageBox.wait</a>\nduring the time the action is being processed.</p>\n",
175       "private": false,
176       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
177       "linenr": 86,
178       "html_filename": "Action2.html",
179       "href": "Action2.html#Ext-form-action-Action-cfg-waitMsg"
180     },
181     {
182       "tagname": "cfg",
183       "name": "waitTitle",
184       "member": "Ext.form.action.Action",
185       "type": "String",
186       "doc": "<p>The title to be displayed by a call to <a href=\"#/api/Ext.window.MessageBox-method-wait\" rel=\"Ext.window.MessageBox-method-wait\" class=\"docClass\">Ext.window.MessageBox.wait</a>\nduring the time the action is being processed.</p>\n",
187       "private": false,
188       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
189       "linenr": 91,
190       "html_filename": "Action2.html",
191       "href": "Action2.html#Ext-form-action-Action-cfg-waitTitle"
192     }
193   ],
194   "method": [
195     {
196       "tagname": "method",
197       "name": "DirectSubmit",
198       "member": "Ext.form.action.Action",
199       "doc": "\n",
200       "params": [
201         {
202           "type": "Object",
203           "name": "config",
204           "doc": "<p>The configuration for this instance.</p>\n",
205           "optional": false
206         }
207       ],
208       "return": {
209         "type": "void",
210         "doc": "\n"
211       },
212       "private": false,
213       "static": false,
214       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
215       "linenr": 1,
216       "html_filename": "Action2.html",
217       "href": "Action2.html#Ext-form-action-Action-method-constructor",
218       "shortDoc": "\n"
219     },
220     {
221       "tagname": "method",
222       "name": "callOverridden",
223       "member": "Ext.Base",
224       "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-property-override\" rel=\"Ext.Base-property-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
225       "params": [
226         {
227           "type": "Array/Arguments",
228           "name": "args",
229           "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
230           "optional": false
231         }
232       ],
233       "return": {
234         "type": "Mixed",
235         "doc": "<p>Returns the result after calling the overridden method</p>\n"
236       },
237       "private": false,
238       "static": false,
239       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
240       "linenr": 279,
241       "html_filename": "Base3.html",
242       "href": "Base3.html#Ext-Base-method-callOverridden",
243       "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n    constructo..."
244     },
245     {
246       "tagname": "method",
247       "name": "getName",
248       "member": "Ext.Base",
249       "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n",
250       "params": [
251
252       ],
253       "return": {
254         "type": "String",
255         "doc": "<p>className</p>\n"
256       },
257       "private": false,
258       "static": false,
259       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
260       "linenr": 652,
261       "html_filename": "Base3.html",
262       "href": "Base3.html#Ext-Base-method-getName",
263       "shortDoc": "Get the current class' name in string format.\n\nExt.define('My.cool.Class', {\n    constructor: function() {\n        al..."
264     }
265   ],
266   "property": [
267     {
268       "tagname": "property",
269       "name": "CLIENT_INVALID",
270       "member": "Ext.form.action.Action",
271       "type": "String",
272       "doc": "<p>Failure type returned when client side validation of the Form fails\nthus aborting a submit action. Client side validation is performed unless\n<a href=\"#/api/Ext.form.action.Submit-cfg-clientValidation\" rel=\"Ext.form.action.Submit-cfg-clientValidation\" class=\"docClass\">Ext.form.action.Submit.clientValidation</a> is explicitly set to <tt>false</tt>.</p>\n",
273       "private": false,
274       "static": true,
275       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
276       "linenr": 271,
277       "html_filename": "Action2.html",
278       "href": "Action2.html#Ext-form-action-Action-property-CLIENT_INVALID",
279       "shortDoc": "Failure type returned when client side validation of the Form fails\nthus aborting a submit action. Client side valida..."
280     },
281     {
282       "tagname": "property",
283       "name": "CONNECT_FAILURE",
284       "member": "Ext.form.action.Action",
285       "type": "String",
286       "doc": "<p>Failure type returned when a communication error happens when attempting\nto send a request to the remote server. The <a href=\"#/api/Ext.form.action.DirectSubmit-property-response\" rel=\"Ext.form.action.DirectSubmit-property-response\" class=\"docClass\">response</a> may be examined to\nprovide further information.</p>\n",
287       "private": false,
288       "static": true,
289       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
290       "linenr": 292,
291       "html_filename": "Action2.html",
292       "href": "Action2.html#Ext-form-action-Action-property-CONNECT_FAILURE",
293       "shortDoc": "Failure type returned when a communication error happens when attempting\nto send a request to the remote server. The ..."
294     },
295     {
296       "tagname": "property",
297       "name": "LOAD_FAILURE",
298       "member": "Ext.form.action.Action",
299       "type": "String",
300       "doc": "<p>Failure type returned when the response's <tt>success</tt>\nproperty is set to <tt>false</tt>, or no field values are returned in the response's\n<tt>data</tt> property.</p>\n",
301       "private": false,
302       "static": true,
303       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
304       "linenr": 302,
305       "html_filename": "Action2.html",
306       "href": "Action2.html#Ext-form-action-Action-property-LOAD_FAILURE",
307       "shortDoc": "Failure type returned when the response's success\nproperty is set to false, or no field values are returned in the re..."
308     },
309     {
310       "tagname": "property",
311       "name": "SERVER_INVALID",
312       "member": "Ext.form.action.Action",
313       "type": "String",
314       "doc": "<p>Failure type returned when server side processing fails and the <a href=\"#/api/Ext.form.action.DirectSubmit-property-result\" rel=\"Ext.form.action.DirectSubmit-property-result\" class=\"docClass\">result</a>'s\n<tt>success</tt> property is set to <tt>false</tt>.</p>\n\n\n<p>In the case of a form submission, field-specific error messages may be returned in the\n<a href=\"#/api/Ext.form.action.DirectSubmit-property-result\" rel=\"Ext.form.action.DirectSubmit-property-result\" class=\"docClass\">result</a>'s <tt>errors</tt> property.</p>\n\n",
315       "private": false,
316       "static": true,
317       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
318       "linenr": 281,
319       "html_filename": "Action2.html",
320       "href": "Action2.html#Ext-form-action-Action-property-SERVER_INVALID",
321       "shortDoc": "Failure type returned when server side processing fails and the result's\nsuccess property is set to false.\n\n\nIn the c..."
322     },
323     {
324       "tagname": "property",
325       "name": "addStatics",
326       "member": "Ext.Base",
327       "type": "Function",
328       "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n",
329       "private": false,
330       "static": true,
331       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
332       "linenr": 399,
333       "html_filename": "Base3.html",
334       "href": "Base3.html#Ext-Base-property-addStatics",
335       "shortDoc": "Add / override static properties of this class.\n\nExt.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics(..."
336     },
337     {
338       "tagname": "property",
339       "name": "borrow",
340       "member": "Ext.Base",
341       "type": "Function",
342       "doc": "<p>Borrow another class' members to the prototype of this class.</p>\n\n<pre><code>Ext.define('Bank', {\n    money: '$$$',\n    printMoney: function() {\n        alert('$$$$$$$');\n    }\n});\n\nExt.define('Thief', {\n    ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n</code></pre>\n",
343       "private": false,
344       "static": true,
345       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
346       "linenr": 492,
347       "html_filename": "Base3.html",
348       "href": "Base3.html#Ext-Base-property-borrow",
349       "shortDoc": "Borrow another class' members to the prototype of this class.\n\nExt.define('Bank', {\n    money: '$$$',\n    printMoney:..."
350     },
351     {
352       "tagname": "property",
353       "name": "create",
354       "member": "Ext.Base",
355       "type": "Function",
356       "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n</code></pre>\n",
357       "private": false,
358       "static": true,
359       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
360       "linenr": 340,
361       "html_filename": "Base3.html",
362       "href": "Base3.html#Ext-Base-property-create",
363       "shortDoc": "Create a new instance of this Class.\n\nExt.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfi..."
364     },
365     {
366       "tagname": "property",
367       "name": "createAlias",
368       "member": "Ext.Base",
369       "type": "Function",
370       "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -&gt; test.method1()\n</code></pre>\n",
371       "private": false,
372       "static": true,
373       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
374       "linenr": 670,
375       "html_filename": "Base3.html",
376       "href": "Base3.html#Ext-Base-property-createAlias",
377       "shortDoc": "Create aliases for existing prototype methods. Example:\n\nExt.define('My.cool.Class', {\n    method1: function() { ... ..."
378     },
379     {
380       "tagname": "property",
381       "name": "failureType",
382       "member": "Ext.form.action.Action",
383       "type": "String",
384       "doc": "<p>The type of failure detected will be one of these: <a href=\"#/api/Ext.form.action.Action-property-CLIENT_INVALID\" rel=\"Ext.form.action.Action-property-CLIENT_INVALID\" class=\"docClass\">Ext.form.action.Action.CLIENT_INVALID</a>,\n<a href=\"#/api/Ext.form.action.Action-property-SERVER_INVALID\" rel=\"Ext.form.action.Action-property-SERVER_INVALID\" class=\"docClass\">Ext.form.action.Action.SERVER_INVALID</a>, <a href=\"#/api/Ext.form.action.Action-property-CONNECT_FAILURE\" rel=\"Ext.form.action.Action-property-CONNECT_FAILURE\" class=\"docClass\">Ext.form.action.Action.CONNECT_FAILURE</a>, or\n<a href=\"#/api/Ext.form.action.Action-property-LOAD_FAILURE\" rel=\"Ext.form.action.Action-property-LOAD_FAILURE\" class=\"docClass\">Ext.form.action.Action.LOAD_FAILURE</a>.  Usage:</p>\n\n<pre><code>var fp = new Ext.form.Panel({\n...\nbuttons: [{\n    text: 'Save',\n    formBind: true,\n    handler: function(){\n        if(fp.getForm().isValid()){\n            fp.getForm().submit({\n                url: 'form-submit.php',\n                waitMsg: 'Submitting your data...',\n                success: function(form, action){\n                    // server responded with success = true\n                    var result = action.<a href=\"#/api/Ext.form.action.DirectSubmit-property-result\" rel=\"Ext.form.action.DirectSubmit-property-result\" class=\"docClass\">result</a>;\n                },\n                failure: function(form, action){\n                    if (action.<a href=\"#/api/Ext.form.action.DirectSubmit-property-failureType\" rel=\"Ext.form.action.DirectSubmit-property-failureType\" class=\"docClass\">failureType</a> === <a href=\"#/api/Ext.form.action.Action-property-CONNECT_FAILURE\" rel=\"Ext.form.action.Action-property-CONNECT_FAILURE\" class=\"docClass\">Ext.form.action.Action.CONNECT_FAILURE</a>) {\n                        Ext.Msg.alert('Error',\n                            'Status:'+action.<a href=\"#/api/Ext.form.action.DirectSubmit-property-response\" rel=\"Ext.form.action.DirectSubmit-property-response\" class=\"docClass\">response</a>.status+': '+\n                            action.<a href=\"#/api/Ext.form.action.DirectSubmit-property-response\" rel=\"Ext.form.action.DirectSubmit-property-response\" class=\"docClass\">response</a>.statusText);\n                    }\n                    if (action.failureType === <a href=\"#/api/Ext.form.action.Action-property-SERVER_INVALID\" rel=\"Ext.form.action.Action-property-SERVER_INVALID\" class=\"docClass\">Ext.form.action.Action.SERVER_INVALID</a>){\n                        // server responded with success = false\n                        Ext.Msg.alert('Invalid', action.<a href=\"#/api/Ext.form.action.DirectSubmit-property-result\" rel=\"Ext.form.action.DirectSubmit-property-result\" class=\"docClass\">result</a>.errormsg);\n                    }\n                }\n            });\n        }\n    }\n},{\n    text: 'Reset',\n    handler: function(){\n        fp.getForm().reset();\n    }\n}]\n</code></pre>\n\n",
385       "private": false,
386       "static": false,
387       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
388       "linenr": 108,
389       "html_filename": "Action2.html",
390       "href": "Action2.html#Ext-form-action-Action-property-failureType",
391       "shortDoc": "The type of failure detected will be one of these: Ext.form.action.Action.CLIENT_INVALID,\nExt.form.action.Action.SERV..."
392     },
393     {
394       "tagname": "property",
395       "name": "implement",
396       "member": "Ext.Base",
397       "type": "Function",
398       "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.implement({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
399       "private": false,
400       "static": true,
401       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
402       "linenr": 428,
403       "html_filename": "Base3.html",
404       "href": "Base3.html#Ext-Base-property-implement",
405       "shortDoc": "Add methods / properties to the prototype of this class.\n\nExt.define('My.awesome.Cat', {\n    constructor: function() ..."
406     },
407     {
408       "tagname": "property",
409       "name": "override",
410       "member": "Ext.Base",
411       "type": "Function",
412       "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
413       "private": false,
414       "static": true,
415       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
416       "linenr": 536,
417       "html_filename": "Base3.html",
418       "href": "Base3.html#Ext-Base-property-override",
419       "shortDoc": "Override prototype members of this class. Overridden methods can be invoked via\nExt.Base.callOverridden\n\nExt.define('..."
420     },
421     {
422       "tagname": "property",
423       "name": "response",
424       "member": "Ext.form.action.Action",
425       "type": "Object",
426       "doc": "<p>The raw XMLHttpRequest object used to perform the action.</p>\n",
427       "private": false,
428       "static": false,
429       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
430       "linenr": 152,
431       "html_filename": "Action2.html",
432       "href": "Action2.html#Ext-form-action-Action-property-response"
433     },
434     {
435       "tagname": "property",
436       "name": "result",
437       "member": "Ext.form.action.Action",
438       "type": "Object",
439       "doc": "<p>The decoded response object containing a boolean <tt>success</tt> property and\nother, action-specific properties.</p>\n",
440       "private": false,
441       "static": false,
442       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
443       "linenr": 158,
444       "html_filename": "Action2.html",
445       "href": "Action2.html#Ext-form-action-Action-property-result"
446     },
447     {
448       "tagname": "property",
449       "name": "run",
450       "member": "Ext.form.action.Action",
451       "type": "Object",
452       "doc": "<p>Invokes this action using the current configuration.</p>\n",
453       "private": false,
454       "static": false,
455       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
456       "linenr": 179,
457       "html_filename": "Action2.html",
458       "href": "Action2.html#Ext-form-action-Action-property-run"
459     },
460     {
461       "tagname": "property",
462       "name": "type",
463       "member": "Ext.form.action.Action",
464       "type": "String",
465       "doc": "<p>The type of action this Action instance performs.\nCurrently only \"submit\" and \"load\" are supported.</p>\n",
466       "private": false,
467       "static": false,
468       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/Action.js",
469       "linenr": 101,
470       "html_filename": "Action2.html",
471       "href": "Action2.html#Ext-form-action-Action-property-type"
472     }
473   ],
474   "event": [
475
476   ],
477   "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/form/action/DirectSubmit.js",
478   "linenr": 1,
479   "html_filename": "DirectSubmit.html",
480   "href": "DirectSubmit.html#Ext-form-action-DirectSubmit",
481   "cssVar": [
482
483   ],
484   "cssMixin": [
485
486   ],
487   "component": false,
488   "superclasses": [
489     "Ext.Base",
490     "Ext.form.action.Action",
491     "Ext.form.action.Submit"
492   ],
493   "subclasses": [
494
495   ],
496   "mixedInto": [
497
498   ],
499   "allMixins": [
500
501   ]
502 });