ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Problem with onSize

nat
17 Dec 2008 11:32:24 GMT
17 Dec 2008 11:32:24 GMT

Hi all
This is the second thread related to this topic.
I would like to catch the "onSize" event on zk window component. Exactly like we used to with "onResize" in html.
But the thing seems not working.
What am I missing? Is there a way to make this work?
Please Help! Any comment or hint will be welcomed. Thank you all.
-nat

RyanWu
17 Dec 2008 11:54:55 GMT
17 Dec 2008 11:54:55 GMT

you can write javascript to catch that
in fact zk now already do something onsizing

nat
17 Dec 2008 12:00:41 GMT
17 Dec 2008 12:00:41 GMT

Hi RyanWu
Thank you very much for your answer.
Am not so skilled in javascript. Could you please provide me with some example?
And also if zk has already done something with "onsizing", where can I find the informations?
Thank you very much!
-nat

RyanWu
17 Dec 2008 15:08:39 GMT
17 Dec 2008 15:08:39 GMT

this is window's javascript in 3.5.2
you can take a look the zkWnd2.onSize Class
https://zk1.svn.sourceforge.net/svnroot/zk1/branches/3.5/zul/src/archive/web/js/zul/wnd2.js

nat
18 Dec 2008 07:58:50 GMT
18 Dec 2008 07:58:50 GMT

Hi RyanWu
Am a little bit confuse and impressed by the amount of javascript code in this file! .. and have no idea how to use this in my page.
I would like a concrete example. Excuse me but this one is too abstract for me.
Thank you anyway and season greatings from switzerland!
-nat

RyanWu
22 Dec 2008 00:15:26 GMT
22 Dec 2008 00:15:26 GMT

see this
http://www.zkoss.org/doc/devguide-single/index.html#id4864368
"The onSize Event"