For example:
You have to make the page that ajax calls a template page. Make a new page in your blog and assign the template. no headers no includes.