includes/clientside/static/autofill.js
changeset 550 685e839d934e
parent 420 301f546688d1
child 581 5e8fd89c02ea
equal deleted inserted replaced
549:6894cfd94dfb 550:685e839d934e
   188         af_current = false;
   188         af_current = false;
   189         // parse the JSON response
   189         // parse the JSON response
   190         var response = String(ajax.responseText) + ' ';
   190         var response = String(ajax.responseText) + ' ';
   191         if ( response.substr(0,1) != '{' )
   191         if ( response.substr(0,1) != '{' )
   192         {
   192         {
   193           new messagebox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>');
   193           new MessageBox(MB_OK|MB_ICONSTOP, 'Invalid response', 'Invalid or unexpected JSON response from server:<pre>' + ajax.responseText + '</pre>');
   194           return false;
   194           return false;
   195         }
   195         }
   196         if ( $dynano(afobj.field_id).object.value.length < 3 )
   196         if ( $dynano(afobj.field_id).object.value.length < 3 )
   197           return false;
   197           return false;
   198         var resp_json = parseJSON(response);
   198         var resp_json = parseJSON(response);