includes/clientside/static/autocomplete.js
changeset 550 685e839d934e
parent 407 35d94240a197
child 581 5e8fd89c02ea
equal deleted inserted replaced
549:6894cfd94dfb 550:685e839d934e
   162         unObj.onblur = function() { destroyUsernameDropdowns(); }
   162         unObj.onblur = function() { destroyUsernameDropdowns(); }
   163         
   163         
   164         var response = String(ajax.responseText) + ' ';
   164         var response = String(ajax.responseText) + ' ';
   165         if ( response.substr(0,1) != '{' )
   165         if ( response.substr(0,1) != '{' )
   166         {
   166         {
   167           new messagebox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>');
   167           new MessageBox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>');
   168           return false;
   168           return false;
   169         }
   169         }
   170         
   170         
   171         response = parseJSON(response);
   171         response = parseJSON(response);
   172         var errorstring = false;
   172         var errorstring = false;