includes/clientside/static/autofill.js
changeset 407 35d94240a197
parent 367 ee4defc9321a
child 420 301f546688d1
equal deleted inserted replaced
406:7468a663315f 407:35d94240a197
   180   this.fetch_and_process = function()
   180   this.fetch_and_process = function()
   181   {
   181   {
   182     af_current = this;
   182     af_current = this;
   183     var processResponse = function()
   183     var processResponse = function()
   184     {
   184     {
   185       if ( ajax.readyState == 4 )
   185       if ( ajax.readyState == 4 && ajax.status == 200 )
   186       {
   186       {
   187         var afobj = af_current;
   187         var afobj = af_current;
   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) + ' ';