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 – an XCAL feed

XCAL is an XML implementation of the iCal format, and as such it can be easily read with JQuery. So, if you’re implementing some kind of calendaring system online, one way to accomplish it could be to read the events from your database, output them in XCAL format, and display them online using our old [...]

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 [...]