Exactly what i needed...thanks a lot man..i should have looked into the
source code myself..my bad..
Matthijs Wensveen-2 wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/Modal-Window-question-tp17989203p18022861.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]