在joomla中重定向出模态框


Redirecting out of modal box in joomla

我在joomla中有一个包含表单的组件,这个表单在modal sbox中…当表单提交时,它将用户重定向到成功的消息页面,但它再次在模态框中,我的问题是,我希望它重定向到一个正常的页面,而不是模态…我该怎么做呢?

这是我的组件的重定向代码…

$url = JRoute::_('index.php?option=com_jxtcappbook'.(JRequest::getInt( 'pop', 0) ? '&view=complete&tmpl=component' : ''));
    $this->setRedirect($url,JText::_( 'You appointment was booked succesfully.'.$pop ));

如果您使用的是Joomla 2.5,则可以使用下面的代码

$app = JFactory::getApplication();应用程序->重定向(index . php);

,如果您使用Joomla1.5,则

全球美元主机;主机->重定向(index . php);

如果你真的对你有帮助就投票给我

谢谢!

我使用了这个代码,我得到了它的工作,但现在我需要当窗口关闭时显示一个消息,提交是成功的…

function closeme()
            {
            parent.SqueezeBox.close();
            }
            window.setTimeout('closeme();',0);