Event Description Test 1 Test 2
data-script-before

Will be called before the ajax call, after data-confirm and before all other options.
Given context: elem (jQuery element that contains the domajax call)

 
data-script-complete

Will be called after the ajax call, whatever if it failed or succeeded.
Given context: elem

data-script-success

Will be called after the ajax call, only if it succeeded.
Given context: elem, response, textStatus, jqXHR

data-script-failure

Will be called after the ajax call, only if it failed.
Given context: elem, response, errorThrown, jqXHR

data-script-empty

Will be called after the ajax call, only if the response is empty.
Given context: elem, response, textStatus, jqXHR

data-script-not-empty

Will be called after the ajax call, only if the response is not empty.
Given context: elem, response, textStatus, jqXHR

Back to domajax's home