The name of the event is send
not request
. So you are looking for onSend:
.
Have a closer look at the documentation:
Events:
- send - (function) The function to execute when the request is sent. Passed the form being submitted and the data (an object) being submitted.
- failure - (function) The function to execute when the request fails. Passed the XHR that is returned by Request on failure.
- success - (function) The function to execute when the request succeeds. Passed the target being updated, the request text, and the request xml.