The javascript to close the ModalWindow is returned by a private method
of ModalWindow:
/**
* @return javascript that closes current modal window
*/
private static String getCloseJavacript()
{
return "var win;\n" //
+ "try {\n" + " win = window.parent.Wicket.Window;\n"
+ "} catch (ignore) {\n"
+ "}\n"
+ "if (typeof(win) == \"undefined\" || typeof(win.current)
== \"undefined\") {\n"
+ " try {\n"
+ " win = window.Wicket.Window;\n"
+ " } catch (ignore) {\n"
+ " }\n"
+ "}\n"
+ "if (typeof(win) != \"undefined\" && typeof(win.current)
!= \"undefined\") {\n"
+ " window.parent.setTimeout(function() {\n" + "
win.current.close();\n"
+ " }, 0);\n"
+ "}";
}
There ya go.
mfs wrote:
Isn't there a way to call the appropriate javascript which does the
modal-close..
mfs wrote:
Guys,
I am posting this question yet again, hoping to get some feedback...
The problem is regarding modal windows, as to how close it, when a form
(within it) is submitted in a new window. Any suggestions
Thanks in advance
--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]