You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Altuğ Bilgin Altıntaş <al...@gmail.com> on 2011/01/24 15:06:13 UTC
AjaxButton and opening popup
Hi all;
Is it possible opening a new page at AjaxButton's onSubmit button ?
I've tried
PopupSettings popupSettings = new PopupSettings();
popupSettings.setTarget("'" + url + "'");
target.appendJavascript(popupSettings.getPopupJavaScript());
but it doesn't work.
Also
throw new RestartResponseAtInterceptPageException(new RedirectPage(url);
works but it opens popup in the same tab not a new window.
Any suggestions ?
Thanks.
--
*Altuğ*
** <http://www.kodcu.com>
Re: AjaxButton and opening popup
Posted by Altuğ Bilgin Altıntaş <al...@gmail.com>.
Thanks Martin.
2011/1/24 Martin Grigorov <mg...@apache.org>
> target.appendJavascript("window.open('"+ url +"', 'someName');");
>
> 2011/1/24 Altuğ Bilgin Altıntaş <al...@gmail.com>
>
> > Hi all;
> >
> > Is it possible opening a new page at AjaxButton's onSubmit button ?
> >
> > I've tried
> >
> > PopupSettings popupSettings = new PopupSettings();
> > popupSettings.setTarget("'" + url + "'");
> > target.appendJavascript(popupSettings.getPopupJavaScript());
> >
> > but it doesn't work.
> >
> > Also
> >
> > throw new RestartResponseAtInterceptPageException(new RedirectPage(url);
> >
> > works but it opens popup in the same tab not a new window.
> >
> >
> > Any suggestions ?
> >
> > Thanks.
> >
> > --
> > *Altuğ*
> > ** <http://www.kodcu.com>
> >
>
--
*Altuğ*
*www.kodcu.com* <http://www.kodcu.com>**
Re: AjaxButton and opening popup
Posted by Martin Grigorov <mg...@apache.org>.
target.appendJavascript("window.open('"+ url +"', 'someName');");
2011/1/24 Altuğ Bilgin Altıntaş <al...@gmail.com>
> Hi all;
>
> Is it possible opening a new page at AjaxButton's onSubmit button ?
>
> I've tried
>
> PopupSettings popupSettings = new PopupSettings();
> popupSettings.setTarget("'" + url + "'");
> target.appendJavascript(popupSettings.getPopupJavaScript());
>
> but it doesn't work.
>
> Also
>
> throw new RestartResponseAtInterceptPageException(new RedirectPage(url);
>
> works but it opens popup in the same tab not a new window.
>
>
> Any suggestions ?
>
> Thanks.
>
> --
> *Altuğ*
> ** <http://www.kodcu.com>
>