ajax调用不适用于safari

时间:2013-02-15 05:39:55

标签: ajax jquery asp.net-ajax

这个ajax调用工作在chrome,IE,firefox,opera但不在safari中。任何人都知道原因。

 var functionToCall = "CallUserControlFunctionAdd";
 var schoolInformation = JSON.stringify({ SchoolName: schoolName, schoolId: SchoolId, UserName: userName });


    $.ajax({
        type: 'POST',
        url: "Account/MyAccount.aspx/" + functionToCall,
        data: schoolInformation,
        contentType: "application/json; charset=utf-8",
        dataType: "json",

        success: function () {

        },
        error: function () {

        }
    });

0 个答案:

没有答案