0

How to determine browser position

asked 2008-06-17 10:24:22 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: enixser

Is there a way how to determine the position of the browser window? I want to determine the position and dimension of the client area of the browser on the screen. This should be used to capture a screenshot of the current browser window.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-06-18 00:59:45 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: robbiecheng

You can get those informations from ClientInfoEvnet.
Please refer to,
http://www.zkoss.org/javadoc/3.0.5/zk/org/zkoss/zk/ui/event/ClientInfoEvent.html

/robbie

link publish delete flag offensive edit

answered 2008-06-18 07:20:35 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: enixser

Unfortunately not! The ClientInfoEvent holds desktopXOffset and desktopYOffset, but this is not the position of the browser window as it changes when the user scrolls the content of the window.

Best regards,
Ralf.

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: 2008-06-17 10:24:22 +0800

Seen: 111 times

Last updated: Jun 18 '08

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