When XML is binary you have a XMLHttpRequest problem... 1

Posted by Steve Longdo Wed, 19 Apr 2006 23:55:00 GMT

Lesson learned the hard way on this one. I have been working with the FCKEditor and getting a strange error specifically:
Error: this.DOMDocument has no properties
Source: /javascripts/fckeditor_gecko_2.js
Line: 22
After pounding my head into my laptop for awhile and putting some whitespace into that file I figured out that I was getting a null response from the XMLHttpRequest for the fckstyles.xml file.

I tried loading it directly from the browser and was promped to save the file to disk. Normally it would open in the browser. Why would it think the XML file is binary? The xml mime-type mapping was removed from the Typo lighttpd.conf file. File this one under "want to know how to keep an idiot busy for hours"... *sigh*
Make sure that your lighttpd.conf has a mapping for XML if you are doing anything with XML.
mimetype.assign = (  
  ...
  ".txt"        =>  "text/plain",
  ".xml"        =>  "text/xml"
)
Comments

Leave a response

  1. Piers Cawley 14 days later:
    Strange. That's the default Rails 1.1 lighttpd.conf, typo made no changes to that.
Comments