All the ajax example I have seen so far have separate codes for the html mark up and a separate php page. Is it not possible for the ajax script to call the same page? e.g Just like a form that has action to call itself.

Thanks