JQuery 1.4.2 + $.ajax() + Internet Explorer = Bug!?!



The target of the $.ajax() content

In IE the first load of this page will throw a JS error "Object doesn't support this property or method" when you click the button. If you click "refresh" the ajax call will work without any errors. Only the first load of the page will throw this error. This error does not manifest itself in other browsers.

There are a couple work around for this error:

  1. Change the charset to ISO-8859-1
  2. Revert to JQuery 1.2.6
  3. Move the meta/charset tag above the script tag that loads JQuery
  4. Use a non-InternetExplorer based browser