onErrorResponse

fires if an error has occured during some operation

void onErrorResponse(object requestData,string response){ ... };

Parameters

requestDataobjectthe data sent with the request
responsestringthe server response

Example

$$("files").attachEvent("onErrorResponse", function(requestData,response){
    var action = requestData.action;
    // your code
    return true;
});

Related samples

Details

Returning false from the event handler will block further processing, and the error handler will not be executed (after an error, File Manager reloads the data, so it will not be reloaded).

Back to top