Attach a function to be executed before an AJAX request is sent. This is an Ajax Event.
The XMLHttpRequest and settings used for that request are passed as arguments to the callback.
Arguments:
| callback | Function | |
|---|---|---|
The function to execute.
function (XMLHttpRequest, ajaxOptions) {
this; // dom element listening
}
| ||