i also tried to take a look at the getCloseJavaScript method /** * @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" + "}"; } But I'm not sure how to use this. I tried making a function from it. but i don't think its made to be used that way. The extra braces at the end " + " }, 0);\n" + "}"; confuses me even more.
Can anyone help? Best regards, Stevenson Lee -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Close-ModalWindow-from-an-applet-in-it-tp2262125p2262145.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org