This was a problem for php developers that they wanted to use AJAX functionality in their joomla components and modules. But when they find that index.php always include code within the XHTML-template of joomla template and thats not what they needed. Instead of generating XML for to evaluate in JavaScript without any XHTML rendered is not the way to be adopted.
Use parameter: format=raw in joomla website URLs where your component and task will throw XHTML as AJAX output.
Last updated: March 19, 2014