0

how to get listbox real width where set listbox height="100%"

asked 2009-07-07 05:09:03 +0800

yuzexu2 gravatar image yuzexu2
222

updated 2009-07-09 03:23:49 +0800

<listbox id="list" width="100%">
</listbox>
how i to get the real width "px" the listbox in IE

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2009-07-09 03:24:31 +0800

yuzexu2 gravatar image yuzexu2
222

please get me help

link publish delete flag offensive edit

answered 2009-07-09 11:25:08 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

u shall write js code along with Clients to get the width of listbox.

/robbie

link publish delete flag offensive edit

answered 2009-07-10 08:08:08 +0800

yuzexu2 gravatar image yuzexu2
222

<script>
function tt(tt)
{
alert(document.getElementById(tt).offsetWidth);

}
</script>
<listbox id="l1" width="100%" onCreate='Clients.evalJavaScript("tt(\""+ self.uuid+ "\")");'>
</listbox>
i get the listbox real width
how i to set the real width to listbox or i can get the width from java code

link publish delete flag offensive edit

answered 2009-07-10 14:26:17 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Have a look here.

regards
Stephan

link publish delete flag offensive edit

answered 2009-07-11 02:15:04 +0800

yuzexu2 gravatar image yuzexu2
222

sorry that not i need
i want to get the listbox real width rather than screen or desktop width

link publish delete flag offensive edit

answered 2009-07-14 15:27:31 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

since you can access the listbox using JavaScript, you can modify the width of listbox, isn't it?

/robbie

link publish delete flag offensive edit

answered 2009-07-15 09:57:07 +0800

yuzexu2 gravatar image yuzexu2
222

but after i get the width how i to modify the width of listbox(listbox width attribute)

link publish delete flag offensive edit

answered 2009-07-21 06:15:37 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

why do you have to update the width of listbox by urself? do you have any issue running ZK application on IE?

/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: 2009-07-07 05:09:03 +0800

Seen: 631 times

Last updated: Jul 21 '09

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