I have Chronoforms 4.0 installed on a Joomla 2.5 site and have a form that opens in a modal window. I am opening the form from a component with the code :
In the form events, the very last action I have in OnSubmit is a Load JS action. In the configuration for the action, I have
This works great. The modal window closes automatically after the form is submitted.
I have the same thing set up on a Joomla 3.1.5 site with Chronoforms 4.0.1 and the modal window does not close. Instead, when the form is submitted, the home page of the site is loaded in the modal window.
Does anyone have any ideas why it isn't working or what I might change to get the modal window to close when the form is submitted?
Jennifer
window.addEvent('domready', function() {
SqueezeBox.open("index.php?option=com_chronoforms&chronoform=RegisterNow&tmpl=component", {
handler: 'iframe',
size: { x: 690, y: 375 }
});
});
In the form events, the very last action I have in OnSubmit is a Load JS action. In the configuration for the action, I have
window.setTimeout('closeme();', 300);
function closeme()
{
parent.SqueezeBox.close();
}
This works great. The modal window closes automatically after the form is submitted.
I have the same thing set up on a Joomla 3.1.5 site with Chronoforms 4.0.1 and the modal window does not close. Instead, when the form is submitted, the home page of the site is loaded in the modal window.
Does anyone have any ideas why it isn't working or what I might change to get the modal window to close when the form is submitted?
Jennifer