stu
stu

Reputation: 8805

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

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, but 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?

Upvotes: 1

Views: 71

Answers (1)

mk.
mk.

Reputation: 26216

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

Upvotes: 1

Related Questions