/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_form_Action({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.form.Action.Load","Ext.form.Action.Submit"],"extends":null,"uses":[],"html":"

Subclasses

Files

The subclasses of this class provide actions to perform upon Forms.

\n\n\n

Instances of this class are only created by a Form when\nthe Form needs to perform an action such as submit or load. The Configuration options\nlisted for this class are set through the Form's action methods: submit,\nload and doAction

\n\n\n

The instance of Action which performed the action is passed to the success\nand failure callbacks of the Form's action methods (submit,\nload and doAction),\nand to the actioncomplete and\nactionfailed event handlers.

\n\n
Defined By

Config options

Ext.form.Action
view source
: Function
The function to call when a failure packet was recieved, or when an\nerror ocurred in the Ajax communication. ...

The function to call when a failure packet was recieved, or when an\nerror ocurred in the Ajax communication.\nThe function is passed the following parameters:

    \n
  • form : Ext.form.BasicForm
    The form that requested the action
  • \n
  • action : Ext.form.Action
    The Action class. If an Ajax\nerror ocurred, the failure type will be in failureType. The result\nproperty of this object may be examined to perform custom postprocessing.
  • \n

\n
Ext.form.Action
view source
: String
The HTTP method to use to access the requested URL. ...

The HTTP method to use to access the requested URL. Defaults to the\nExt.form.BasicForm's method, or if that is not specified, the underlying DOM form's method.

\n
Ext.form.Action
view source
: Mixed
Extra parameter values to pass. ...

Extra parameter values to pass. These are added to the Form's\nExt.form.BasicForm.baseParams and passed to the specified URL along with the Form's\ninput fields.

\n\n\n

Parameters are encoded as standard HTTP parameters using Ext.urlEncode.

\n\n
Ext.form.Action
view source
: Boolean
When set to true, causes the Form to be\nreset on Action success. ...

When set to true, causes the Form to be\nreset on Action success. If specified, this happens\nbefore the success callback is called and before the Form's\nactioncomplete event fires.

\n
Ext.form.Action
view source
scope : Object

The scope in which to call the callback functions (The this reference\nfor the callback functions).

\n

The scope in which to call the callback functions (The this reference\nfor the callback functions).

\n
Ext.form.Action
view source
: Boolean
If set to true, the emptyText value will be sent with the form\nwhen it is submitted. ...

If set to true, the emptyText value will be sent with the form\nwhen it is submitted. Defaults to true.

\n
Ext.form.Action
view source
: Function
The function to call when a valid success return packet is recieved. ...

The function to call when a valid success return packet is recieved.\nThe function is passed the following parameters:

\n
Ext.form.Action
view source
: Number
The number of seconds to wait for a server response before\nfailing with the failureType as Action.CONNECT_FAILURE. ...

The number of seconds to wait for a server response before\nfailing with the failureType as Action.CONNECT_FAILURE. If not specified,\ndefaults to the configured timeout of the\nform.

\n
Ext.form.Action
view source
url : String

The URL that the Action is to invoke.

\n

The URL that the Action is to invoke.

\n
Ext.form.Action
view source
waitMsg : String

The message to be displayed by a call to Ext.MessageBox.wait\nduring the time the action is being processed.

\n

The message to be displayed by a call to Ext.MessageBox.wait\nduring the time the action is being processed.

\n
Ext.form.Action
view source
waitTitle : String

The title to be displayed by a call to Ext.MessageBox.wait\nduring the time the action is being processed.

\n

The title to be displayed by a call to Ext.MessageBox.wait\nduring the time the action is being processed.

\n

Properties

Defined By

Instance Properties

The type of failure detected will be one of these: CLIENT_INVALID,\nSERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. ...

The type of failure detected will be one of these: CLIENT_INVALID,\nSERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. Usage:

\n\n
var fp = new Ext.form.FormPanel({\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.result;\n                },\n                failure: function(form, action){\n                    if (action.failureType === Ext.form.Action.CONNECT_FAILURE) {\n                        Ext.Msg.alert('Error',\n                            'Status:'+action.response.status+': '+\n                            action.response.statusText);\n                    }\n                    if (action.failureType === Ext.form.Action.SERVER_INVALID){\n                        // server responded with success = false\n                        Ext.Msg.alert('Invalid', action.result.errormsg);\n                    }\n                }\n            });\n        }\n    }\n},{\n    text: 'Reset',\n    handler: function(){\n        fp.getForm().reset();\n    }\n}]\n
\n\n
Ext.form.Action
view source
response : Object

The XMLHttpRequest object used to perform the action.

\n

The XMLHttpRequest object used to perform the action.

\n
Ext.form.Action
view source
result : Object

The decoded response object containing a boolean success property and\nother, action-specific properties.

\n

The decoded response object containing a boolean success property and\nother, action-specific properties.

\n
Ext.form.Action
view source
: String
The type of action this Action instance performs. ...

The type of action this Action instance performs.\nCurrently only \"submit\" and \"load\" are supported.

\n

Defaults to: 'default'

Defined By

Static Properties

Ext.form.Action
view source
: Stringstatic
Failure type returned when client side validation of the Form fails\nthus aborting a submit action. ...

Failure type returned when client side validation of the Form fails\nthus aborting a submit action. Client side validation is performed unless\nclientValidation is explicitly set to false.

\n
Ext.form.Action
view source
: Stringstatic
Failure type returned when a communication error happens when attempting\nto send a request to the remote server. ...

Failure type returned when a communication error happens when attempting\nto send a request to the remote server. The response may be examined to\nprovide further information.

\n
Ext.form.Action
view source
: Stringstatic
Failure type returned when the response's success\nproperty is set to false, or no field values are returned in the re...

Failure type returned when the response's success\nproperty is set to false, or no field values are returned in the response's\ndata property.

\n
Ext.form.Action
view source
: Stringstatic
Failure type returned when server side processing fails and the result's\nsuccess property is set to false. ...

Failure type returned when server side processing fails and the result's\nsuccess property is set to false.

\n\n\n

In the case of a form submission, field-specific error messages may be returned in the\nresult's errors property.

\n\n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[{"tagname":"property","owner":"Ext.form.Action","meta":{"static":true},"name":"CLIENT_INVALID","id":"static-property-CLIENT_INVALID"},{"tagname":"property","owner":"Ext.form.Action","meta":{"static":true},"name":"CONNECT_FAILURE","id":"static-property-CONNECT_FAILURE"},{"tagname":"property","owner":"Ext.form.Action","meta":{"static":true},"name":"LOAD_FAILURE","id":"static-property-LOAD_FAILURE"},{"tagname":"property","owner":"Ext.form.Action","meta":{"static":true},"name":"SERVER_INVALID","id":"static-property-SERVER_INVALID"}],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"Action2.html#Ext-form-Action","filename":"Action.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.form.Action","meta":{},"name":"failureType","id":"property-failureType"},{"tagname":"property","owner":"Ext.form.Action","meta":{},"name":"response","id":"property-response"},{"tagname":"property","owner":"Ext.form.Action","meta":{},"name":"result","id":"property-result"},{"tagname":"property","owner":"Ext.form.Action","meta":{},"name":"type","id":"property-type"}],"cfg":[{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"failure","id":"cfg-failure"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"method","id":"cfg-method"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"params","id":"cfg-params"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"reset","id":"cfg-reset"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"scope","id":"cfg-scope"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"submitEmptyText","id":"cfg-submitEmptyText"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"success","id":"cfg-success"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"timeout","id":"cfg-timeout"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"url","id":"cfg-url"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"waitMsg","id":"cfg-waitMsg"},{"tagname":"cfg","owner":"Ext.form.Action","meta":{},"name":"waitTitle","id":"cfg-waitTitle"}],"css_var":[],"method":[],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.form.Action","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.form.Action","mixins":[],"mixedInto":[]});