summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2010-08-10 21:37:05 +0000
committerivan <ivan>2010-08-10 21:37:05 +0000
commit197b6a447eb3a09973c2e2e45c4d4e2be8297b17 (patch)
treedb835cc772c92899313d03e114ecee86e0f8b46b /httemplate
parent1ec723c2b944c08c32362d05cefe8b332c80276d (diff)
eliminate the '0 status connecting' errors, they're not telling us anything and causing lots of people to waste time asking
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/xmlhttp.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html
index 2df3c42c9..ac6f9916e 100644
--- a/httemplate/elements/xmlhttp.html
+++ b/httemplate/elements/xmlhttp.html
@@ -58,7 +58,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);