Re: HTML_AJAX and timeout
| From: | Justin Patrin | Date: | Mon, 16 Apr 2007 16:54:35 +0000 |
| Subject: | Re: HTML_AJAX and timeout | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27070@lists.php.net to get a copy of this message | ||
On 4/16/07, Joshua Eichorn <josh@bluga.net> wrote:
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;Thanks much, I'll be using this one. ;-)
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?I'd like to take this opportunity to thank you and the other HTML_AJAX developers for a great package. I've been using the proxy mode for a new project (which I can hopefully release soon) and it was a snap to get AJAX calls happening. :-)
-josh Justin Patrin wrote: On 4/14/07, T A <tiron_adrian@hotmail.com> wrote:-- Justin PatrinI'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.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.