I am using an AJAX call to access some resource from external server. But the server redirects me to another location and do not return anything. I want to get the the url of that location….
Exampl on JS Fiddle….http://jsfiddle.net/5KtVE/2/
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.
As this is a crossdomain request you have to set the
dataTypeoption tojsonp, this should work:http://jsfiddle.net/5KtVE/3/