-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4332802
By: roxcastaneda
Whats wrong with the code below?
<html xmlns:zk="http://www.zkoss.org/2005/zk" xmlns:x="http://www.zkoss.org/2005/zul"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul
http://www.zkoss.org/2005/zul/zul.xsd">
<x:window onClientInfo="onClientInfo(event)">
<x:grid >
<x:rows>
<x:row>Time Zone <label id="tm"/></x:row>
<x:row>Screen <label id="scrn"/></x:row>
</x:rows>
<zk:zscript>
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.ClientInfoEvent;
void onClientInfo(ClientInfoEvent evt) {
tm.setValue(evt.getTimeZone().toString());
scrn.setValue(evt.getScreenWidth()+"x"+evt.getScreenHeight()+"x"+evt.getColorD
epth());
}
</zk:zscript>
</x:grid>
</x:window>
</html>
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4334071
By: robbiecheng
Would you please state problems or errors you encountered?
/Robbie
Asked: 2007-05-27 22:54:57 +0800
Seen: 181 times
Last updated: May 29 '07