error

Release 1.1 - ...

Handler for errors during ajax calls.

Javascript CopyCode image Copy Code
sml.ajax({
   busy: true,
 
   error: function(e){
      alert(e.lastErrorType + ': ' + e.lastError);
   },
 
   ready: function(){ }
});

 

The error handler is called with two properties that give information about the error that occurred:

  • lastErrorType
    Type of the error
  • lastError
    Error message