0

My jquery ajax call for a json file fails in Internet Explorer. All other explorers are doing good.

Code :

 $.ajax({
                    url: myurl + "?randomid="+Math.random(),
                    datatype: "json",
                    mimeType:"application/json; charset=UTF-8",
                    success: function(data,status,response) {
                        var JSONdata = $.parseJSON(response.responseText);
                        alert("Success");
                    },
                    error: function(e1,e2,e3) {
                        alert(e1 + " " + e2 + " " + e3);
                    }
            });

Internet Explorer throws the alert in the error section :

[Object Object] error No Transport

Thanks in advance for your help!

2

1 Answer 1

1

You have cross domain request. You need to set this (before ajax call):

$.support.cors = true;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.