Re: HTML_AJAX and timeout

From: Date: Mon, 16 Apr 2007 16:31:24 +0000
Subject: Re: HTML_AJAX and timeout
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27068@lists.php.net to get a copy of this message
20,000 is 20 seconds And HTML_AJAX.js are HTML_AJAX_lite are compiled files, if anyone is wondering. On methods that take a options array you can set timeout in that. HTML_AJAX.grab('ur',callback,{timeout:40000}); On proxy objects you can set the timeout like: proxyObject.dispatcher.timeout = 40000; You might also get away with changing the defaults by setting timeout on the Request prototype HTML_AJAX_Request.prototype.timeout = 40000; This looks like an area where it could make sense to have a global value on HTML_AJAX for setting a new default timeout, thoughts? -josh Justin Patrin wrote:
On 4/14/07, T A <tiron_adrian@hotmail.com> wrote:
hello, Sometimes i get an error with HTML_AJAX which says something with timeout expired 2 seconds, or something like that so i would like to increase this timeout. I've greped the /usr/share/pear/data dir and found something like this:
data/HTML_AJAX/js/Dispatcher.js:        timeout: 20000,
data/HTML_AJAX/js/Request.js: timeout: 20000, data/HTML_AJAX/js/HTML_AJAX.js: timeout: 20000, data/HTML_AJAX/js/HTML_AJAX.js: timeout: 20000, data/HTML_AJAX/js/HTML_AJAX_lite.js:timeout: 20000, data/HTML_AJAX/js/HTML_AJAX_lite.js:timeout: 20000, The problem is i don't know exactly which to change. Can you help? Thanks.
I'd also be interested in an answer as I couldn't find one in the docs. This should be easily programmatically settable in the JS code I would think.


« previous php.pear.general (#27068) next »