You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Per Newgro <pe...@gmx.ch> on 2007/09/26 08:39:40 UTC
Howto center new window on screen?
Hi *,
i don't know exactly if this question is more a html related then for wicket.
I would like to open a new window centered after click on a link. Can and if
how can i do this?
Thanks for your help
Per
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Howto center new window on screen?
Posted by Eelco Hillenius <ee...@gmail.com>.
> i don't know exactly if this question is more a html related then for wicket.
>
> I would like to open a new window centered after click on a link. Can and if
> how can i do this?
I don't know exactly from the top of my head, but I think you'd do
this with Javascript.
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Howto center new window on screen?
Posted by Newgro <pe...@gmx.ch>.
Hi *,
Sorry for reopening this. I did all you suggested.
> Then in your page or panels or other components:
> add(HeaderContributor.forJavascript(JavaScript.CENTER_WINDOW));
>
But how can i execute the javascript in that resource? I tried a
AttributeModifier, but couldn't center the window.
Can someone push me to the right direction (maybe an example)
Thanks
Per
--
View this message in context: http://www.nabble.com/Howto-center-new-window-on-screen--tf4520337.html#a13587788
Sent from the Wicket - User 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