Re: Modal window - chagne width and height

2009-01-06 Thread Vitek Tajzich
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 martin.maku...@koodaripalvelut.com

 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 v.tajz...@gmail.com:
  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:martin.maku...@koodaripalvelut.com]
  Sent: Monday, January 05, 2009 10:53 AM
  To: users@wicket.apache.org
  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 v.tajz...@gmail.com:
  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 pi...@hmcrecord.ch
 
  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 pi...@hmcrecord.ch
 
 
 
  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 pi...@hmcrecord.ch
 
 
 
 
 
  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: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Modal window - chagne width and height

2009-01-05 Thread Piller Sébastien

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 pi...@hmcrecord.ch

  

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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Modal window - chagne width and height

2009-01-05 Thread Vitek Tajzich
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 pi...@hmcrecord.ch

 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 pi...@hmcrecord.ch



 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Modal window - chagne width and height

2009-01-05 Thread Piller Sébastien

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 pi...@hmcrecord.ch

  

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 pi...@hmcrecord.ch



  

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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Modal window - chagne width and height

2009-01-05 Thread Vitek Tajzich
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 pi...@hmcrecord.ch

 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 pi...@hmcrecord.ch



 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 pi...@hmcrecord.ch





 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Modal window - chagne width and height

2009-01-05 Thread Martin Makundi
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 v.tajz...@gmail.com:
 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 pi...@hmcrecord.ch

 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 pi...@hmcrecord.ch



 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 pi...@hmcrecord.ch





 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Modal window - chagne width and height

2009-01-05 Thread Vitek Tajzich
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:martin.maku...@koodaripalvelut.com] 
Sent: Monday, January 05, 2009 10:53 AM
To: users@wicket.apache.org
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 v.tajz...@gmail.com:
 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 pi...@hmcrecord.ch

 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 pi...@hmcrecord.ch



 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 pi...@hmcrecord.ch





 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Modal window - chagne width and height

2009-01-05 Thread Martin Makundi
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 v.tajz...@gmail.com:
 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:martin.maku...@koodaripalvelut.com]
 Sent: Monday, January 05, 2009 10:53 AM
 To: users@wicket.apache.org
 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 v.tajz...@gmail.com:
 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 pi...@hmcrecord.ch

 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 pi...@hmcrecord.ch



 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 pi...@hmcrecord.ch





 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Modal window - chagne width and height

2009-01-04 Thread Vitek Tajzich
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.



Re: Modal window - chagne width and height

2009-01-04 Thread Sébastien Piller

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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Modal window - chagne width and height

2009-01-04 Thread Vitek Tajzich
Hi,

actually there is now JS function resizeTo :-(

V.

2009/1/4 Sébastien Piller pi...@hmcrecord.ch

 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org