Is there any way to extract the request url from an xhr object?
I can see the url in firebug via the channel property but you cant query this using javascript.
Is there any way to extract the request url from an xhr object? I
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.
I hope I’m understanding your problem correctly.
It should be fairly simple to wrap your XHR objects with your own object to allow for this kind of functionality.
Below is an overly simplified example:
I haven’t tested this extensively, but it should work and with some modifications (error handling, passing parameters, etc) you should probably be able to turn this example into a fully functional solution.