Note to self, re: using jQuery for AJAX

By March 6, 2009 No Comments


Note to self: if you do things like $('#home').load('xml/homepage.xml', function() { ... , you might think everything is working fine, because it will be ok in Firefox, but then Allen and Tracy will say “Hey, you, look at the page in Internet Explorer and Safari. It is broken.”

So apparently what you have to do is more like

type: "GET",
url: "xml/homepage.xml",
dataType: "xml",
success: function(xml) {

and then, everyone is happy!

Alex Chousmith

Alex has been building with Ninthlink since '06, and a San Diegan since the turn of the century. A background of Mathematics – Computer Science / Interdisciplinary Computing & Arts from UCSD, plus Drupal / WordPress / jQuery / CSS3 / HTML5 / bass guitar / homebrew skill, powers him to get the job done, no matter what.

Leave a Reply