includes/clientside/static/autocomplete.js
changeset 407 35d94240a197
parent 367 ee4defc9321a
child 550 685e839d934e
equal deleted inserted replaced
406:7468a663315f 407:35d94240a197
   135   o.setAttribute("autocomplete","off");
   135   o.setAttribute("autocomplete","off");
   136   o.onkeyup = function(e, o) { o=unObj; if(!nameCompleteEventHandler(e)) ajaxUserNameComplete(o); }
   136   o.onkeyup = function(e, o) { o=unObj; if(!nameCompleteEventHandler(e)) ajaxUserNameComplete(o); }
   137   val = escape(o.value).replace('+', '%2B');
   137   val = escape(o.value).replace('+', '%2B');
   138   ajaxGet(stdAjaxPrefix+'&_mode=fillusername&name='+val, function()
   138   ajaxGet(stdAjaxPrefix+'&_mode=fillusername&name='+val, function()
   139     {
   139     {
   140       if(ajax.readyState==4)
   140       if ( ajax.readyState == 4 && ajax.status == 200 )
   141       {
   141       {
   142         // Determine the appropriate left/top positions, then create a div to use for the drop-down list
   142         // Determine the appropriate left/top positions, then create a div to use for the drop-down list
   143         // 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
   143         // 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
   144         destroyUsernameDropdowns();
   144         destroyUsernameDropdowns();
   145         off = fetch_offset(unObj);
   145         off = fetch_offset(unObj);
   222   o.onkeyup = function(e, o) { o=unObj; if(!nameCompleteEventHandler(e)) ajaxPageNameComplete(o); }
   222   o.onkeyup = function(e, o) { o=unObj; if(!nameCompleteEventHandler(e)) ajaxPageNameComplete(o); }
   223   val = escape(o.value).replace('+', '%2B');
   223   val = escape(o.value).replace('+', '%2B');
   224   ajaxGet(stdAjaxPrefix+'&_mode=fillpagename&name='+val, function()
   224   ajaxGet(stdAjaxPrefix+'&_mode=fillpagename&name='+val, function()
   225     {
   225     {
   226       if(!ajax) return;
   226       if(!ajax) return;
   227       if(ajax.readyState==4)
   227       if ( ajax.readyState == 4 && ajax.status == 200 )
   228       {
   228       {
   229         // Determine the appropriate left/top positions, then create a div to use for the drop-down list
   229         // Determine the appropriate left/top positions, then create a div to use for the drop-down list
   230         // 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
   230         // 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
   231         destroyUsernameDropdowns();
   231         destroyUsernameDropdowns();
   232         off = fetch_offset(unObj);
   232         off = fetch_offset(unObj);