includes/clientside/static/misc.js
changeset 407 35d94240a197
parent 372 5bd429428101
child 413 6607cd646d6d
--- a/includes/clientside/static/misc.js	Fri Feb 08 23:20:20 2008 -0500
+++ b/includes/clientside/static/misc.js	Sun Feb 10 19:35:06 2008 -0500
@@ -38,7 +38,7 @@
   rDnsObj = o;
   rDnsBannerObj = bannerOn('Retrieving reverse DNS info...');
   ajaxGet(stdAjaxPrefix+'&_mode=rdns&ip='+ipaddr, function() {
-      if(ajax.readyState == 4)
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         off = fetch_offset(rDnsObj);
         dim = fetch_dimensions(rDnsObj);
@@ -400,7 +400,7 @@
   _.src = scriptPath + "/images/good.gif";
   
   ajaxGet(makeUrlNS('Special', 'Login', 'act=getkey'), function() {
-      if ( ajax.readyState == 4 )
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         var response = String(ajax.responseText);
         if ( response.substr(0,1) != '{' )
@@ -611,7 +611,7 @@
   ajax_auth_mb_cache.updateContent(loading_win);
   
   ajaxPost(makeUrlNS('Special', 'Login', 'act=ajaxlogin'), 'params=' + json_data, function() {
-      if ( ajax.readyState == 4 )
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         var response = ajax.responseText;
         if ( response.substr(0,1) != '{' )