0

clientInfo with JSP

asked 2007-05-27 22:54:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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>

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2007-05-29 01:42:28 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4334071

By: robbiecheng


Would you please state problems or errors you encountered?

/Robbie

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-05-27 22:54:57 +0800

Seen: 181 times

Last updated: May 29 '07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More