there is no special code....

just on ajaxrequesttarget call method appendJavascript() and use the code
below.

Window will get resized and centered. I have also noticed that If I set
width and height to empty strings, window will resize to it's needs :-)

V.

2009/1/6 Martin Makundi <[email protected]>

> Hi, would you be kind to post also the server-side java code here?
> Otherwise, I have to go guessing ...
>
> **
> Martin
>
> 2009/1/6 Vitek Tajzich <[email protected]>:
> > Hi,
> >
> > I've found a solution to this problem. It is straight forward but I did
> one
> > mistake in my javascript. Thanks god for firebug ;-)
> >
> > So, If you want to resize ModalWindow by ajax call lets append these 3
> lines
> > in your target.appendJavascript...
> >
> > Code:
> >
> > Wicket.Window.get().window.style.width="800px";\n
> > Wicket.Window.get().content.style.height="600px";\n
> > Wicket.Window.get().center();\n
> >
> > Notice that properties and units should be get from modal's java object
> > properties...
> >
> > Last line will center your modal Windows after resizing.
> >
> > BR,
> >
> > V.
> >
> > -----Original Message-----
> > From: Martin Makundi [mailto:[email protected]]
> > Sent: Monday, January 05, 2009 10:53 AM
> > To: [email protected]
> > Subject: Re: Modal window - chagne width and height
> >
> > Why don't you just set the modal window div css properties with
> javascript?
> >
> > http://developer.apple.com/internet/webcontent/styles.html
> >
> > 2009/1/5 Vitek Tajzich <[email protected]>:
> >> Yes, that right but these properties are read only at construction time
> so
> >> I'm not able to change size of already shown window by ajax....
> >>
> >> If you have a solution I will be happy :-)
> >>
> >> V.
> >>
> >> 2009/1/5 Piller Sébastien <[email protected]>
> >>
> >>> Hum yes sorry, I didn't get that you were in a modal window
> >>>
> >>> So there is some method setInitialWidth/setInitialHeight in ModalWindow
> >>> that should work :)
> >>>
> >>>
> >>> Vitek Tajzich a écrit :
> >>>
> >>>  As far as I know that is not a window but only div actually,
> >>>>
> >>>> so I can't user resizeTo, can I?
> >>>>
> >>>> 2009/1/5 Piller Sébastien <[email protected]>
> >>>>
> >>>>
> >>>>
> >>>>> Even here?
> >>>>>
> >>>>> http://www.javascripter.net/faq/resizing.htm
> >>>>>
> >>>>>
> >>>>> Vitek Tajzich a écrit :
> >>>>>
> >>>>>  Hi,
> >>>>>
> >>>>>
> >>>>>> actually there is now JS function resizeTo :-(
> >>>>>>
> >>>>>> V.
> >>>>>>
> >>>>>> 2009/1/4 Sébastien Piller <[email protected]>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I doubt such a feature is implemented in the wicket code
> >>>>>>>
> >>>>>>> most likely, you will need to call the javascript function
> >>>>>>> "window.resizeTo" yourself, with an AjaxBehavior (ie
> >>>>>>> AjaxAbstractDefaultBehavior#respond and
> >>>>>>> AjaxRequestTarget#appendJavascript)
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Vitek Tajzich wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Is it possible to resize Modal Window by ajax?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> I need for some reason to resize currently opened window. I've
> been
> >>>>>>>> looking
> >>>>>>>> on google and mailing list and I didn't found anything usable. I
> > also
> >>>>>>>> looked
> >>>>>>>> into javascript for modal window and I think It should be
> possible..
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Thanks..
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> V.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe, e-mail: [email protected]
> >>>>>>> For additional commands, e-mail: [email protected]
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: [email protected]
> >>>>> For additional commands, e-mail: [email protected]
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to