X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/UpdateManager.html diff --git a/docs/source/UpdateManager.html b/docs/source/UpdateManager.html index 485e1695..0bac8aeb 100644 --- a/docs/source/UpdateManager.html +++ b/docs/source/UpdateManager.html @@ -1,5 +1,6 @@
+update
event handler.
* @param {Object} options A config object containing any of the following options:The URL to request or a function which * returns the URL (defaults to the value of {@link Ext.Ajax#url} if not specified).
The HTTP method to - * use. Defaults to POST if the params argument is present, otherwise GET.
params
argument is present, otherwise GET.
* The * parameters to pass to the server (defaults to none). These may be specified as a url-encoded * string, or as an object containing properties which represent parameters, * or as a function, which returns such an object.
If true + *
If true
* any <script> tags embedded in the response text will be extracted
* and executed (defaults to {@link Ext.Updater.defaults#loadScripts}). If this option is specified,
* the callback will be called after the execution of the scripts.
The config object passed to the update call.
The scope in which - * to execute the callback (The callback's this reference.) If the - * params argument is a function, this scope is used for that function also.
this
reference.) If the
+ * params
argument is a function, this scope is used for that function also.
* By default, the URL of this request becomes * the default URL for this Updater object, and will be subsequently used in {@link #refresh} - * calls. To bypass this behavior, pass discardUrl:true (defaults to false).
discardUrl:true
(defaults to false).
* The number of seconds to wait for a response before * timing out (defaults to {@link Ext.Updater.defaults#timeout}).
The text to use as the innerHTML of the @@ -333,14 +334,14 @@ function() { },
/** - *Performs an async form post, updating this element with the response. If the form has the attribute + *
Performs an asynchronous form post, updating this element with the response. If the form has the attribute * enctype="multipart/form-data", it assumes it's a file upload. * Uses this.sslBlankUrl for SSL file uploads to prevent IE security warning.
*File uploads are not performed using normal "Ajax" techniques, that is they are not
* performed using XMLHttpRequests. Instead the form is submitted in the standard manner with the
- * DOM <form> element temporarily modified to have its
+ * DOM <form>
element temporarily modified to have its
* target set to refer
- * to a dynamically generated, hidden <iframe> which is inserted into the document
+ * to a dynamically generated, hidden <iframe>
which is inserted into the document
* but removed after the return data has been gathered.
Be aware that file upload packets, sent with the content type multipart/form-data * and some server technologies (notably JEE) may require some custom processing in order to @@ -492,7 +493,7 @@ Ext.Updater.defaults = { * Blank page URL to use with SSL file uploads (defaults to {@link Ext#SSL_SECURE_URL} if set, or "javascript:false"). * @type String */ - sslBlankUrl : (Ext.SSL_SECURE_URL || "javascript:false") + sslBlankUrl : Ext.SSL_SECURE_URL }; @@ -517,17 +518,17 @@ Ext.Updater.updateElement = function(el, url, params, options){
/** * @class Ext.Updater.BasicRenderer - * Default Content renderer. Updates the elements innerHTML with the responseText. + *This class is a base class implementing a simple render method which updates an element using results from an Ajax request.
+ *The BasicRenderer updates the element's innerHTML with the responseText. To perform a custom render (i.e. XML or JSON processing), + * create an object with a conforming {@link #render} method and pass it to setRenderer on the Updater.
*/ Ext.Updater.BasicRenderer = function(){}; Ext.Updater.BasicRenderer.prototype = { /** - * This is called when the transaction is completed and it's time to update the element - The BasicRenderer - * updates the elements innerHTML with the responseText - To perform a custom render (i.e. XML or JSON processing), - * create an object with a "render(el, response)" method and pass it to setRenderer on the Updater. + * This method is called when an Ajax response is received, and an Element needs updating. * @param {Ext.Element} el The element being rendered - * @param {Object} response The XMLHttpRequest object + * @param {Object} xhr The XMLHttpRequest object * @param {Updater} updateManager The calling update manager * @param {Function} callback A callback that will need to be called if loadScripts is true on the Updater */