weixin_33691598 2016-05-10 06:44 采纳率: 0%
浏览 64

ajax InvalidCharacterError

I'm not familiar with ajax and I'm debugging in IE10 and got an error InvalidCharacterError on this block of code. When I set it to the edge mode it throws an Invalid Argument Error .

jQuery.ajax({
    async: false,
    type: 'POST',
    url: url,
    dataType: 'html',
    data: ({copyEventId : copyEventId}),
    success: function(data){
        $j('#Tab1').html(data);
        initializeWizardState();
        bindQuestionFieldEvents(1);
    },
    error: function(xmlHttpResponse, textStatus, errorThrown){
        alert('ERROR!! status: ' + textStatus);
    },
    cache: false
});
  • 写回答

2条回答 默认 最新

  • weixin_33674437 2016-05-10 06:50
    关注
    Try this
    jQuery.ajax({
        async: false,
        type: 'POST',
        url: url,
        dataType: 'html',
        data: {"copyEventId" : copyEventId},
        success: function(data){
            $j('#Tab1').html(data);
            initializeWizardState();
            bindQuestionFieldEvents(1);
        },
        error: function(xmlHttpResponse, textStatus, errorThrown){
            alert('ERROR!! status: ' + textStatus);
        },
        cache: false
    });
    
    评论

报告相同问题?