0

timebox.setSelectionRange

asked 2009-03-09 14:51:28 +0800

dastultz gravatar image dastultz
797 8

Hello,

I have a pop-up window with the first field being a timebox. I'd like to focus on the timebox and have the hour highlighted. I can't seem to get it to work. I get the cursor at the far right with nothing selected:

<window>
<timebox id="tb"/>
<zscript>
tb.setValue(java.util.Calendar.getInstance().getTime());
tb.setSelectionRange(0, 2);
tb.focus();
</zscript>
</window>

What is the expected behavior of setSelectionRange on a Timebox?

I'm using ZK 3.5.2 on FireFox 3.0.7.

/Daryl

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-03-11 16:57:02 +0800

dastultz gravatar image dastultz
797 8

I said above that I get the cursor at the far right. In IE7 I get it on the far left - still no selection. Can anyone on Zk team tell me if setSelectionRange() works on a Timebox?

Thanks.

/Daryl

link publish delete flag offensive edit

answered 2009-03-13 07:24:43 +0800

windperson gravatar image windperson
415 1

Hi dastultz,
This may be a bug, can you post the bug here? Thx.

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: 2009-03-09 14:51:28 +0800

Seen: 254 times

Last updated: Mar 13 '09

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