I'm facing a problem in the development of my web application:
First, I load the solution in a popup window from the main website using
- Code: Select all
<a href="http://localhost:8080/servoy-webclient/solutions/solution/mySolution" target="_blank" onClick="window.open(this.href, this.target, 'menubar=0,location=0,toolbar=0,status=0,width=900,height=600'); return false;">
I need to close the popup window when the user finishes or cancels the process.
I'm using the wonderful WebClientUtils http://code.google.com/p/web-client-utils/ plugin from Sean Devlin to do this
- Code: Select all
plugins.WebClientUtils.executeClientSideJS('window.close()');
that works OK for the main form, but when I use the same method from a modal dialog, it doesn't close the solution window.
I've tried to do this:
- Code: Select all
function dialogClose()
{
application.closeForm();
forms.frmMain.ExitSolution();
}
- Code: Select all
function ExitSolution()
{
application.closeFormDialog(true);
plugins.WebClientUtils.executeClientSideJS('window.close()')
}
but the results are the same. application.closeSolution doesn't do what i want either.
- Code: Select all
application.closeSolution(null,plugins.WebClientUtils.executeClientSideJS('window.close()'),null)
any tips?
Thanks in advance.
Martin