Bergkamp
Bergkamp

Reputation: 73

jquery ajax post json doesn't work in ie8

I have this jquery code:

var sendInfo = {
    auth: {
        username: "janusz",
        password: "password"
    },
    func: "getCategories"
};

$.ajax({
    url: 'http://domainname/fcgi-bin/wgpa.fcgi',
    type: "POST",
    data: sendInfo,
    dataType: "json",
    contentType: "text/json; charset=utf-8",
    success: function (data) {
        //....
    }
});

It works in Chrome, Firefox, IE11, but it fails in IE8. Doesn't say anything. And the request doesn't appear on server side either.

Upvotes: 1

Views: 2699

Answers (1)

Tommy B
Tommy B

Reputation: 185

I hope you've resolved the issue. In case any other people hit this question, I'll provide an answer.

You can you use EasyXDM ( http://easyxdm.net ) for you cross domain posts. It can be a little bit tricky to set up, but works a charm.

Upvotes: 1

Related Questions