I have a wicket modal.  On clicking a button in it, that is part of the form
in the modal's page, I need to close the modal, put a message in the
feedback of the parent page, and invoke a javascript method in the parent
page.  I am using the pagecreator approach to ModalWindow.  This is Wicket
6.26.

The problem is that when i go to hit the button, I am getting the following
javascipt error:

Wicket.Ajax:  TypeError: Unable to get property 'top' of undefined or null
reference

It then has two cascaded errors that imply that it is trying to work the DOM
inside the iframe instead of the parent window.  Which makes sense, but I am
almost certain that I've done this sort of thing before (but can't find an
example).  I don't think I'm doing anything especially different.  

I am wondering if I need to run the ModalWindow.closeCurrent() first, and
then after it closes, respond to the event from that to do the feedback and
javascript call?  That chaining seems awkward, so I figured I'd ask before I
tried it.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-failing-to-modify-it-s-parent-in-ajax-event-tp4677800.html
Sent from the Users forum 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

Reply via email to