jQuery Ajax call No element found issue

前端 未结 6 1996
清歌不尽
清歌不尽 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

    You need to send html document to the output (the output udates.svc in your case) . If you use ASP.NET, you could do the following:

    Response.Clear();
    Response.Write("");
    Response.Write("");
    Response.Write("");
    Response.Write("your output");
    Response.Write("");
    Response.Write("");
    Response.ContentType = "text/HTML";
    Response.End();
    

提交回复
热议问题