jQuery.get() Subtleties – Plain Text

Republished from September 15 2012, 3:56 PM

Most of my coding is for myself and I test it for the single platform I happen to be using at the moment. A jQuery application I wrote, and used for months in Chrome, broke when I tried to use it in Firefox. I was reading a plain text file from a server using:

jQuery.get(url, success)

Containing no HTML or XML, Chrome was happy to return a string, but Firefox tried to make it an XML document and consequently failed.

jQuery.get() Subtleties – Plain Text
Tagged on:         

Leave a Reply

Your email address will not be published. Required fields are marked *