Can I get the requested URL from ajaxStart ? I want to execute a common action for all ajax request accept some few requests.
Can I get the requested URL from ajaxStart ? I want to execute a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, within
ajaxStartyou do not have access to thejqXHRobject nor theajaxOptions:As you can see, there are no arguments being passed to
ajaxStart. Contrast this withajaxSend:Where the
jqXHRobject is being passed as an argument along with the settings:Also see this answer for a better understanding of this design.