开发者

Does a response to an xmlhttprequest call have to be XML?

开发者 https://www.devze.com 2023-01-08 11:21 出处:网络
I\'ve written a bunch of xhr stuff over the years, but today I ran into a curious thing. In firefox with firebug every time my server responds, I get a syntax error in the console. And the error conte

I've written a bunch of xhr stuff over the years, but today I ran into a curious thing. In firefox with firebug every time my server responds, I get a syntax error in the console. And the error context is the message response text. The message response text is a string of numbers separated by pipes "|". Sure it's not valid xml, bu开发者_开发问答t I've never sent valid xml before and never had a problem. Is this a firebug thing or is firefox really unhappy about my response text?


No. It can be xml, json, or some other structure of your choosing.

0

精彩评论

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