jQuery ajaxSend

This AJAXEvent ajaxSend registers a handler to be executed before an Ajax request is sent.

Whenever an Ajax request is about to be sent, jQuery triggers the ajaxSend event. Any and all handlers that have been registered with the .ajaxSend() method are executed at this time.

To observe this method in action, do the following

Add jQuery libs from CDN into head section in HTML page

Write few HTML tags into body section

Add ajaxComplete event into head section

The complete HTML page

When the user clicks the element with class trigger and the Ajax request is about to begin, the log message is displayed.

Thanks for reading.





Software Professional, I am passionate to work on web/enterprise application. For more information please go to about me. You can follow on Twitter. You can be a friend on Facebook or Google Plus or Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.