eliminate the '0 status connecting' errors, they're not telling us anything and causi...
authorivan <ivan>
Tue, 10 Aug 2010 21:37:06 +0000 (21:37 +0000)
committerivan <ivan>
Tue, 10 Aug 2010 21:37:06 +0000 (21:37 +0000)
httemplate/elements/xmlhttp.html

index d0c7990..0a6941b 100644 (file)
@@ -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);