X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/source/Submit.html diff --git a/docs/source/Submit.html b/docs/source/Submit.html index 9f368c07..326f05a1 100644 --- a/docs/source/Submit.html +++ b/docs/source/Submit.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @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
@@ -27,7 +44,7 @@
* <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'
@@ -52,7 +69,8 @@
</message>
</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',
@@ -61,8 +79,8 @@ Ext.define('Ext.form.action.Submit', {
type: 'submit',
- /**
- * @cfg {boolean} clientValidation Determines whether a Form's fields are validated
+ /**
+ * @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.
*/
@@ -79,7 +97,7 @@ Ext.define('Ext.form.action.Submit', {
}
},
- /**
+ /**
* @private
* Perform the submit of the form data.
*/
@@ -107,7 +125,7 @@ Ext.define('Ext.form.action.Submit', {
}
},
- /**
+ /**
* @private
* Build the full set of parameters from the field values plus any additional configured params.
*/
@@ -118,7 +136,7 @@ Ext.define('Ext.form.action.Submit', {
return Ext.apply({}, fieldParams, configParams);
},
- /**
+ /**
* @private
* Build a form element containing fields corresponding to all the parameters to be
* submitted (everything returned by {@link #getParams}.
@@ -145,7 +163,7 @@ Ext.define('Ext.form.action.Submit', {
tag: 'input',
type: 'hidden',
name: name,
- value: val
+ value: Ext.String.htmlEncode(val)
});
}
@@ -175,7 +193,7 @@ Ext.define('Ext.form.action.Submit', {
}
// 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,
@@ -191,7 +209,7 @@ Ext.define('Ext.form.action.Submit', {
- /**
+ /**
* @private
*/
onSuccess: function(response) {
@@ -208,7 +226,7 @@ Ext.define('Ext.form.action.Submit', {
form.afterAction(this, success);
},
- /**
+ /**
* @private
*/
handleResponse: function(response) {
@@ -235,4 +253,6 @@ Ext.define('Ext.form.action.Submit', {
return Ext.decode(response.responseText);
}
});
-
\ No newline at end of file
+
+
+