[Commits] r2618 - core/trunk/geoext/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Thu Mar 10 18:22:01 CET 2011
Author: ahocevar
Date: 2011-03-10 18:22:01 +0100 (Thu, 10 Mar 2011)
New Revision: 2618
Modified:
core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
Log:
adding a timeout option for POST requests sent by the PrintProvider. p=cmoullet, r=me (closes #409)
Modified: core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2011-03-04 20:54:13 UTC (rev 2617)
+++ core/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2011-03-10 17:22:01 UTC (rev 2618)
@@ -106,11 +106,12 @@
*/
method: "POST",
- /** api: config[customParams]
- * ``Object`` Key-value pairs of custom data to be sent to the print
- * service. Optional. This is e.g. useful for complex layout definitions
- * on the server side that require additional parameters.
+ /** api: config[timeout]
+ * ``Number`` Timeout of the POST Ajax request used for the print request
+ * (in milliseconds). Default of 30 seconds. Has no effect if ``method``
+ * is set to ``GET``.
*/
+ timeout: 30000,
/** api: property[customParams]
* ``Object`` Key-value pairs of custom data to be sent to the print
@@ -466,6 +467,7 @@
} else {
Ext.Ajax.request({
url: this.capabilities.createURL,
+ timeout: this.timeout,
jsonData: jsonData,
success: function(response) {
// In IE, using a Content-disposition: attachment header
More information about the Commits
mailing list