Blog Archives

JQuery AJAX using XML in Internet Explorer

I spent a while this morning trying to figure out why an JQuery AJAX call wasn’t working in Internet Explorer 8. The call was being made to a PHP script which was outputting XML. I had checked the XML was valid and (no surprises) it was all working fine in Firefox. Eventually I found this [...]

Loading XML with JQuery

Thankfully JQuery makes it really easy to load a variety of data formats with AJAX: Text HTML JSON (JavaScript Object Notation) XML Within applications I generally use JSON, as it is less verbose and easier to process than XML. Check out the native PHP5 function or the PEAR JSON package for a way to easily [...]