You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2013/03/12 17:01:54 UTC

send message from modal window to parent

Hello, 
Is it possible to send a flag from modal window to the parent page in order
to make additional operations? 
ModalWindow.WindowClosedCallback doesn't help.
I want to send that message if the modal window was closed after pressing
the submit button( that calls modal.close()), and not from modal close
button.  
Which is the recommended method?
Thanks



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/send-message-from-modal-window-to-parent-tp4657185.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: send message from modal window to parent

Posted by Paul Bors <pa...@bors.ws>.
If I understand you right you want to close your parent window from inside
the modal pop-up window.
I take it you want them both closed.

Won't it be simpler to send the window JS object to your pop-up and call
the window.close() from inside your pop-up?
~ Thank you,
   Paul Bors
On Tue, Mar 12, 2013 at 12:01 PM, cosmindumy <co...@yahoo.com> wrote:

> Hello,
> Is it possible to send a flag from modal window to the parent page in order
> to make additional operations?
> ModalWindow.WindowClosedCallback doesn't help.
> I want to send that message if the modal window was closed after pressing
> the submit button( that calls modal.close()), and not from modal close
> button.
> Which is the recommended method?
> Thanks
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/send-message-from-modal-window-to-parent-tp4657185.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>