Essentially, all you need to do is return XML or JSON from your CI application for AJAX requests. There are functions in the PHP world to assist in converting object to XML and JSON, and I’m sure implementing them in CI as libraries or helpers would be a cinch.