开发者

jQuery AJAX call working in IE but not FF?

$.ajax({
            type: "GET",
            url: 'http://services.somewhere.com/Met开发者_运维技巧hodName',
            data: { 'param1':'something', 'param2': 'somethingElse' },
            cache: false,
            dataType: 'jsonp',
            contentType: "application/json; charset=utf-8",
            success: function(view) {
                alert('success');
            },
            error: function(xhr, ajaxOptions, thrownError) {
                alert(xhr.status);
                alert(xhr.responseText);
                alert(xhr.statusText);
            }
        });


Finally found solution here which clearly explains clearly how to consume web services

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜