-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-form.action.Submit'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-form-action-Submit'>/**
</span> * @class Ext.form.action.Submit
* @extends Ext.form.action.Action
* <p>A class which handles submission of data from {@link Ext.form.Basic Form}s
* <p>Other data may be placed into the response for processing by the {@link Ext.form.Basic}'s callback
* or event handler methods. The object decoded from this JSON is available in the
* {@link Ext.form.action.Action#result result} property.</p>
- * <p>Alternatively, if an {@link #errorReader} is specified as an {@link Ext.data.reader.Xml XmlReader}:</p><pre><code>
+ * <p>Alternatively, if an {@link Ext.form.Basic#errorReader errorReader} is specified as an {@link Ext.data.reader.Xml XmlReader}:</p><pre><code>
errorReader: new Ext.data.reader.Xml({
record : 'field',
success: '@success'
&lt;/message&gt;
</code></pre>
* <p>Other elements may be placed into the response XML for processing by the {@link Ext.form.Basic}'s callback
- * or event handler methods. The XML document is available in the {@link #errorReader}'s {@link Ext.data.reader.Xml#xmlData xmlData} property.</p>
+ * or event handler methods. The XML document is available in the {@link Ext.form.Basic#errorReader errorReader}'s
+ * {@link Ext.data.reader.Xml#xmlData xmlData} property.</p>
*/
Ext.define('Ext.form.action.Submit', {
extend:'Ext.form.action.Action',
type: 'submit',
-<span id='Ext-form.action.Submit-cfg-clientValidation'> /**
-</span> * @cfg {boolean} clientValidation Determines whether a Form's fields are validated
+<span id='Ext-form-action-Submit-cfg-clientValidation'> /**
+</span> * @cfg {Boolean} clientValidation Determines whether a Form's fields are validated
* in a final call to {@link Ext.form.Basic#isValid isValid} prior to submission.
* Pass <tt>false</tt> in the Form's submit options to prevent this. Defaults to true.
*/
}
},
-<span id='Ext-form.action.Submit-method-doSubmit'> /**
+<span id='Ext-form-action-Submit-method-doSubmit'> /**
</span> * @private
* Perform the submit of the form data.
*/
}
},
-<span id='Ext-form.action.Submit-method-getParams'> /**
+<span id='Ext-form-action-Submit-method-getParams'> /**
</span> * @private
* Build the full set of parameters from the field values plus any additional configured params.
*/
return Ext.apply({}, fieldParams, configParams);
},
-<span id='Ext-form.action.Submit-method-buildForm'> /**
+<span id='Ext-form-action-Submit-method-buildForm'> /**
</span> * @private
* Build a form element containing fields corresponding to all the parameters to be
* submitted (everything returned by {@link #getParams}.
tag: 'input',
type: 'hidden',
name: name,
- value: val
+ value: Ext.String.htmlEncode(val)
});
}
}
// Create the form
- formEl = Ext.core.DomHelper.append(Ext.getBody(), formSpec);
+ formEl = Ext.DomHelper.append(Ext.getBody(), formSpec);
// Special handling for file upload fields: since browser security measures prevent setting
// their values programatically, and prevent carrying their selected values over when cloning,
-<span id='Ext-form.action.Submit-method-onSuccess'> /**
+<span id='Ext-form-action-Submit-method-onSuccess'> /**
</span> * @private
*/
onSuccess: function(response) {
form.afterAction(this, success);
},
-<span id='Ext-form.action.Submit-method-handleResponse'> /**
+<span id='Ext-form-action-Submit-method-handleResponse'> /**
</span> * @private
*/
handleResponse: function(response) {
return Ext.decode(response.responseText);
}
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>