Hi..
i experience a problem and i am working with it few hours but i can`t find a solution. I am trying to load on a modal window the comment page. It`s working but when i submit the comment there is no redirect to the parent page.
in the controller of the comment i have put a new function
function testfunction() {
$document = JFactory::getDocument();
$js = "javascript: window.parent.document.location.reload(true);";
$js .= "javascript:window.parent.SqueezeBox.close();";
$document->addScriptDeclaration($js);
}
but i get on a blank page the message: {"message":"Comment added! Refreshing page...","refresh":1}
I know that something is going wrong with the js but i dont know what. i tried to change the parameteres ok k2 about javascript but with no result. :(
i experience a problem and i am working with it few hours but i can`t find a solution. I am trying to load on a modal window the comment page. It`s working but when i submit the comment there is no redirect to the parent page.
in the controller of the comment i have put a new function
function testfunction() {
$document = JFactory::getDocument();
$js = "javascript: window.parent.document.location.reload(true);";
$js .= "javascript:window.parent.SqueezeBox.close();";
$document->addScriptDeclaration($js);
}
but i get on a blank page the message: {"message":"Comment added! Refreshing page...","refresh":1}
I know that something is going wrong with the js but i dont know what. i tried to change the parameteres ok k2 about javascript but with no result. :(