You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Rob Audenaerde <ro...@gmail.com> on 2016/10/19 15:06:38 UTC
ModalWindow and OnDomReady
Hi all,
I have a panel that needs some JavaScript for sizing etc. to run after a
ModalWindow is shown, but as I now see it the Javascript is run *before*
the modal window is shown.
What is the proper way to run javascript after a ModalWindow is shown? It
seems OnDomReady is not sufficient here?
Thanks,
Rob
Re: ModalWindow and OnDomReady
Posted by Rob Audenaerde <ro...@gmail.com>.
The panel is created and added with setContent just before the modal window
is shown.
On Oct 20, 2016 10:40 AM, "Ernesto Reinaldo Barreiro" <re...@gmail.com>
wrote:
> is this panel initially added to the mcdal? When page is created?
>
> On Thu, Oct 20, 2016 at 10:13 AM, Rob Audenaerde <rob.audenaerde@gmail.com
> >
> wrote:
>
> > It is the Panel that I put on the ModalWindow.
> >
> > On Wed, Oct 19, 2016 at 7:56 PM, Martin Grigorov <mg...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > It depends on what you add the OnDomReady header item.
> > > Is it the ModalWindow ? Or its content (Panel or Page) ?
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Wed, Oct 19, 2016 at 5:06 PM, Rob Audenaerde <
> > rob.audenaerde@gmail.com>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > I have a panel that needs some JavaScript for sizing etc. to run
> after
> > a
> > > > ModalWindow is shown, but as I now see it the Javascript is run
> > *before*
> > > > the modal window is shown.
> > > >
> > > > What is the proper way to run javascript after a ModalWindow is
> shown?
> > It
> > > > seems OnDomReady is not sufficient here?
> > > >
> > > > Thanks,
> > > >
> > > > Rob
> > > >
> > >
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>
Re: ModalWindow and OnDomReady
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
is this panel initially added to the mcdal? When page is created?
On Thu, Oct 20, 2016 at 10:13 AM, Rob Audenaerde <ro...@gmail.com>
wrote:
> It is the Panel that I put on the ModalWindow.
>
> On Wed, Oct 19, 2016 at 7:56 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > Hi,
> >
> > It depends on what you add the OnDomReady header item.
> > Is it the ModalWindow ? Or its content (Panel or Page) ?
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Wed, Oct 19, 2016 at 5:06 PM, Rob Audenaerde <
> rob.audenaerde@gmail.com>
> > wrote:
> >
> > > Hi all,
> > >
> > > I have a panel that needs some JavaScript for sizing etc. to run after
> a
> > > ModalWindow is shown, but as I now see it the Javascript is run
> *before*
> > > the modal window is shown.
> > >
> > > What is the proper way to run javascript after a ModalWindow is shown?
> It
> > > seems OnDomReady is not sufficient here?
> > >
> > > Thanks,
> > >
> > > Rob
> > >
> >
>
--
Regards - Ernesto Reinaldo Barreiro
Re: ModalWindow and OnDomReady
Posted by Rob Audenaerde <ro...@gmail.com>.
It is the Panel that I put on the ModalWindow.
On Wed, Oct 19, 2016 at 7:56 PM, Martin Grigorov <mg...@apache.org>
wrote:
> Hi,
>
> It depends on what you add the OnDomReady header item.
> Is it the ModalWindow ? Or its content (Panel or Page) ?
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Oct 19, 2016 at 5:06 PM, Rob Audenaerde <ro...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > I have a panel that needs some JavaScript for sizing etc. to run after a
> > ModalWindow is shown, but as I now see it the Javascript is run *before*
> > the modal window is shown.
> >
> > What is the proper way to run javascript after a ModalWindow is shown? It
> > seems OnDomReady is not sufficient here?
> >
> > Thanks,
> >
> > Rob
> >
>
Re: ModalWindow and OnDomReady
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
It depends on what you add the OnDomReady header item.
Is it the ModalWindow ? Or its content (Panel or Page) ?
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, Oct 19, 2016 at 5:06 PM, Rob Audenaerde <ro...@gmail.com>
wrote:
> Hi all,
>
> I have a panel that needs some JavaScript for sizing etc. to run after a
> ModalWindow is shown, but as I now see it the Javascript is run *before*
> the modal window is shown.
>
> What is the proper way to run javascript after a ModalWindow is shown? It
> seems OnDomReady is not sufficient here?
>
> Thanks,
>
> Rob
>
Re: ModalWindow and OnDomReady
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Repainting the panel after the modal is shown? On the same ART That way
JavaScript will be executed again.
On Wed, Oct 19, 2016 at 5:06 PM, Rob Audenaerde <ro...@gmail.com>
wrote:
> Hi all,
>
> I have a panel that needs some JavaScript for sizing etc. to run after a
> ModalWindow is shown, but as I now see it the Javascript is run *before*
> the modal window is shown.
>
> What is the proper way to run javascript after a ModalWindow is shown? It
> seems OnDomReady is not sufficient here?
>
> Thanks,
>
> Rob
>
--
Regards - Ernesto Reinaldo Barreiro