/*
* brisk - xhr.js
*
- * Copyright (C) 2006-2008 Matteo Nastasi
+ * Copyright (C) 2006-2011 Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
* not, write to the Free Software Foundation, Inc, 59 Temple Place -
* Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id$
- *
*/
var xhr_rd_cookiepath = "/brisk/";
// console.log(xhr_rd.readyState);
if (xhr_rd.readyState == 4) {
- if (xhr_rd_watchdog != null) {
+ if (typeof xhr_rd_watchdog != 'undefined' && xhr_rd_watchdog != null) {
hbit('C');
clearTimeout(xhr_rd_watchdog);
xhr_rd_watchdog = null;
function xhr_rd_start(sess,stat,subst,step)
{
if (the_end) {
- if (xhr_rd_watchdog != null) {
+ //x alert("the_end1");
+ if (typeof xhr_rd_watchdog != 'undefined' && xhr_rd_watchdog != null) {
hbit('C');
clearTimeout(xhr_rd_watchdog);
xhr_rd_watchdog = null;
}
else {
- if (xhr_rd_watchdog != null) {
+ //x alert("the_end2");
+ if (typeof xhr_rd_watchdog != 'undefined' && xhr_rd_watchdog != null) {
clearTimeout(xhr_rd_watchdog);
xhr_rd_watchdog = null;
}
setTimeout(xhr_rd_poll, tout, sess);
}
else {
- if (xhr_rd_watchdog != null) {
- clearTimeout(xhr_rd_watchdog);
- xhr_rd_watchdog = null;
+ //x alert("the_end3");
+ if (typeof(xhr_rd_watchdog) != 'undefined') {
+ if (xhr_rd_watchdog != null) {
+ clearTimeout(xhr_rd_watchdog);
+ xhr_rd_watchdog = null;
+ }
}
}
return;