XML cannot be the whole program – anyone else seen this firebug error? happening when receiving remote data (json, as it were) via ajax.
If data type changed json to html, working fine.
This is my actual code in php:
I reloaded the page, once session has been expired.
if($action->getRequest()->isXmlHttpRequest())
{
$action->getResponse()->setContent("<script>window.location.reload();</script>");
$action->getResponse()->send();
}
firebug displays the following error:
XML cannot be the whole program
[Break on this error] window.location.reload();
Are you passing it the correct data format from the Ajax call? The error says it’s something to do with XML, but you said you had it set to JSON, not XML.