includes/clientside/static/autocomplete.js
changeset 407 35d94240a197
parent 367 ee4defc9321a
child 550 685e839d934e
--- a/includes/clientside/static/autocomplete.js	Fri Feb 08 23:20:20 2008 -0500
+++ b/includes/clientside/static/autocomplete.js	Sun Feb 10 19:35:06 2008 -0500
@@ -137,7 +137,7 @@
   val = escape(o.value).replace('+', '%2B');
   ajaxGet(stdAjaxPrefix+'&_mode=fillusername&name='+val, function()
     {
-      if(ajax.readyState==4)
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         // Determine the appropriate left/top positions, then create a div to use for the drop-down list
         // The trick here is to be able to make the div dynamically destroy itself depending on how far the user's mouse is from it
@@ -224,7 +224,7 @@
   ajaxGet(stdAjaxPrefix+'&_mode=fillpagename&name='+val, function()
     {
       if(!ajax) return;
-      if(ajax.readyState==4)
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         // Determine the appropriate left/top positions, then create a div to use for the drop-down list
         // The trick here is to be able to make the div dynamically destroy itself depending on how far the user's mouse is from it