From 38c3dc6772f77c0eb4d56a109c766f47dbeb0455 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 10 Aug 2010 21:37:06 +0000 Subject: [PATCH] eliminate the '0 status connecting' errors, they're not telling us anything and causing lots of people to waste time asking --- httemplate/elements/xmlhttp.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index d0c799095..0a6941b87 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -75,7 +75,11 @@ Example: return; if (xmlhttp.status != 200) { - alert(xmlhttp.status + " status connecting to " + url); + if ( xmlhttp.status != 0 ) { + //not warning on the 0 errors, they pop up when navagating away + // from the page + alert(xmlhttp.status + " status connecting to " + url); + } } else { var data = xmlhttp.responseText; //alert('received response: ' + data); -- 2.11.0