Home

Quick Notes on Firefox 3 and Ajax

  • Jun. 18th, 2008 at 4:11 PM
by Julia, blurred
Installed Firefox 3 and my Ajax app stopped working. Why? Two things.

First, it now adds a charset=ISO885-1 to the end of the content-type of the requests made with XMLHttpRequest. My server was expecting the unadorned media-type, so thought the content-type was wrong and rejected the request. I have changed the server.

Second, I was slightly sloppily using document.createElement('head') and the new element to an element whose namespace URI was set to something. This previously caused the new element to inherit the namespace (purely by accident, because of the way the XML was serialized). This has been corrected, and an attribute xmlns="" is added to the element. This breaks my server's attempts to locate the head element. I have changed the JavaScript to use the namespace-savvy createElementNS instead.

Advertisement

Latest Month

October 2009
S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Tags

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by [info]chasethestars