New today on his blog, Jacob Santos has posted some of the quirks that he's found in his dealings with PHP and the XMLHttpRequest object for Ajax comunications.
He starts off talking about the PHP backend including the three methods you can display the information (return the content) back to the calling script. From there, it's on to the (two) quirks:
- Don't Create an Instance of the Same Object For multiple Tasks
- Always Call XMLHttpRequest Object First
Both quirks come with their own code an an explaination as to what the real issue is and how to work around it in your code. All of the changes he mentions, though, are on the client-side, leaving the PHP untouched.