We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
A Simpler Ajax Path
|
| Subject: |
|
Using overrideMimeType with text files causes errors |
| Date: |
|
2005-10-09 02:57:41 |
| From: |
|
parsingphase
|
|
|
|
Using http_request.overrideMimeType('text/xml'); when you're not actually fetching XML is incorrect, and will cause confusing Javascript Console errors in the latest versions of Firefox. The XMLHttpRequest object will try and parse the fetched file as XML, and complain when it can't.
See:
https://bugzilla.mozilla.org/show_bug.cgi?id=311724
(Mozilla bug 311724)
|