4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-form-action-StandardSubmit'>/**
19 </span> * @class Ext.form.action.StandardSubmit
20 * @extends Ext.form.action.Submit
21 * <p>A class which handles submission of data from {@link Ext.form.Basic Form}s using a standard
22 * <tt>&lt;form&gt;</tt> element submit. It does not handle the response from the submit.</p>
23 * <p>If validation of the form fields fails, the Form's afterAction method
24 * will be called. Otherwise, afterAction will not be called.</p>
25 * <p>Instances of this class are only created by a {@link Ext.form.Basic Form} when
26 * {@link Ext.form.Basic#submit submit}ting, when the form's {@link Ext.form.Basic#standardSubmit}
27 * config option is <tt>true</tt>.</p>
29 Ext.define('Ext.form.action.StandardSubmit', {
30 extend:'Ext.form.action.Submit',
31 alias: 'formaction.standardsubmit',
33 <span id='Ext-form-action-StandardSubmit-cfg-target'> /**
34 </span> * @cfg {String} target
35 * Optional <tt>target</tt> attribute to be used for the form when submitting. If not specified,
36 * the target will be the current window/frame.
39 <span id='Ext-form-action-StandardSubmit-method-doSubmit'> /**
41 * Perform the form submit. Creates and submits a temporary form element containing an input element for each
42 * field value returned by {@link Ext.form.Basic#getValues}, plus any configured {@link #params params} or
43 * {@link Ext.form.Basic#baseParams baseParams}.
45 doSubmit: function() {
46 var form = this.buildForm();