Quote:
Originally Posted by Heinz
Is there any timeout possible for the getPage request?
Like if the page is not loaded after 10sec it should skip the request.
|
Connect/read timeout appears to be working fine. Had you tried this way?
Code:
var br = getBrowser();
br.setConnectTimeout(100);
br.setReadTimeout(100);
var page = null;
try {
page = br.getPage("http://www.google.de/");
} catch (e) {}
alert(page);
In the above example, you can see that iIf you use a very low timeout, it will return 'null'.