jQuery Ajax call No element found issue

前端 未结 6 1995
清歌不尽
清歌不尽 2020-12-17 09:33

I am getting a javascript error on firefox 3.5, when trying to call an ajax method.

Please find the error below:

XML Parsing Error: no element found          


        
6条回答
  •  忘掉有多难
    2020-12-17 09:49

    async is also part of options. Also specify the dataType as xml

    function Update(Id) {
        $.ajax({
            type: "GET",
            async: false,
            dataType: "XML",
            url: ROOT_URL + "/sevice/udates.svc/Update?Id=" + Id,
            success: function(response) {
    
            }
        });
    }
    

提交回复
热议问题