A quick question with a potentially longer discussion. What do you use for AJAX in PHP, and why?

XAJAX is a simple way to do it, and this is the approach I’ve been using for some time. In very simple terms, you write PHP methods that can be called from JavaScript by prefixing the method name with xajax_.

jQuery on the other hand has a number of API methods so you can do all your AJAX within jQuery, without the need for XAJAX.

Using both jQuery and XAJAX together is possible, although it can take a bit of trial and error to get them working correctly.

Have you used either of these approaches? Have you had problems with combining multiple frameworks? Can you recommend any alternatives?

ben barden