I'd like to set global handlers for ajax requests, but only for POST
cases.
Unfortunately, global handlers $.ajaxStart()
and $.ajaxStop()
will fire for all requests and as far as I can see there is no parameter passed onto the handler function. The documentation is also scarce, as most jQuery documentation is.
Can I detect the request type from within a global ajax handler?