Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 13 Dec 2007 00:18:38 -0600,    group: microsoft.public.inetsdk.html_authoring        back       


Auto resize dropdown list of a combo in IE   
How do I Auto resize dropdown list part of a combo box (not the text part of 
the combo box but the list)
I do not want to resize the box its self I want to resize the List part of 
the combo box to the size of the longest item in the list box.

The following code works find in FireFox, but not in IE.

Thanks


Peter


<html>
<head>
<title>test</title>
</head>
<body>

<select style="width:50px">
<option  selected>[select]</option>
<option  value="">Test </option>
<option 
value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
<option 
value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
</select>

</body>
</html>
date: Thu, 13 Dec 2007 00:18:38 -0600   author:   Peter am

Re: Auto resize dropdown list of a combo in IE   
Hi

I think the only way you can only resize combos controls in IE is via the 
text which first appears in combo control as it first appears (before being 
dropped down), by using html entities such as " " to create a blank 
space.

I have never found any infor that says anything contrary to this.

joe
"Peter" <pczurak@nospam.nospam> wrote in message 
news:eU0oAAVPIHA.4752@TK2MSFTNGP05.phx.gbl...
> How do I Auto resize dropdown list part of a combo box (not the text part 
> of the combo box but the list)
> I do not want to resize the box its self I want to resize the List part of 
> the combo box to the size of the longest item in the list box.
>
> The following code works find in FireFox, but not in IE.
>
> Thanks
>
>
> Peter
>
>
> <html>
> <head>
> <title>test</title>
> </head>
> <body>
>
> <select style="width:50px">
> <option  selected>[select]</option>
> <option  value="">Test </option>
> <option 
> value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> <option 
> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
> </select>
>
> </body>
> </html>
>
>
>
date: Sat, 5 Jan 2008 11:16:13 -0000   author:   joe

Re: Auto resize dropdown list of a combo in IE   
Hi again

And sorry, because having read my previous message, I can see that I have 
not been very clear and in fact I misunderstood your question.

All you need to do is to change the size of the "select" tag thus:

<select style="width:150px">

================================================================================================
"joe"  wrote in message 
news:u00Ilx4TIHA.4584@TK2MSFTNGP03.phx.gbl...
> Hi
>
> I think the only way you can only resize combos controls in IE is via the 
> text which first appears in combo control as it first appears (before 
> being dropped down), by using html entities such as " " to create a 
> blank space.
>
> I have never found any infor that says anything contrary to this.
>
> joe
> "Peter" <pczurak@nospam.nospam> wrote in message 
> news:eU0oAAVPIHA.4752@TK2MSFTNGP05.phx.gbl...
>> How do I Auto resize dropdown list part of a combo box (not the text part 
>> of the combo box but the list)
>> I do not want to resize the box its self I want to resize the List part 
>> of the combo box to the size of the longest item in the list box.
>>
>> The following code works find in FireFox, but not in IE.
>>
>> Thanks
>>
>>
>> Peter
>>
>>
>> <html>
>> <head>
>> <title>test</title>
>> </head>
>> <body>
>>
>> <select style="width:50px">
>> <option  selected>[select]</option>
>> <option  value="">Test </option>
>> <option 
>> value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> <option 
>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>> </select>
>>
>> </body>
>> </html>
>>
>>
>>
>
>
date: Sat, 5 Jan 2008 11:42:56 -0000   author:   joe

Re: Auto resize dropdown list of a combo in IE   
Thanks for your help, but <select style="width:150px"> only resze the text 
box part of the dropdown it does not resize the Listbox part.
If you display the included webpage in FireFox and then in IE you'll see 
what I mean.




"joe"  wrote in message 
news:ek4ddA5TIHA.3516@TK2MSFTNGP02.phx.gbl...
> Hi again
>
> And sorry, because having read my previous message, I can see that I have 
> not been very clear and in fact I misunderstood your question.
>
> All you need to do is to change the size of the "select" tag thus:
>
> <select style="width:150px">
>
> ================================================================================================
> "joe"  wrote in message 
> news:u00Ilx4TIHA.4584@TK2MSFTNGP03.phx.gbl...
>> Hi
>>
>> I think the only way you can only resize combos controls in IE is via the 
>> text which first appears in combo control as it first appears (before 
>> being dropped down), by using html entities such as " " to create a 
>> blank space.
>>
>> I have never found any infor that says anything contrary to this.
>>
>> joe
>> "Peter" <pczurak@nospam.nospam> wrote in message 
>> news:eU0oAAVPIHA.4752@TK2MSFTNGP05.phx.gbl...
>>> How do I Auto resize dropdown list part of a combo box (not the text 
>>> part of the combo box but the list)
>>> I do not want to resize the box its self I want to resize the List part 
>>> of the combo box to the size of the longest item in the list box.
>>>
>>> The following code works find in FireFox, but not in IE.
>>>
>>> Thanks
>>>
>>>
>>> Peter
>>>
>>>
>>> <html>
>>> <head>
>>> <title>test</title>
>>> </head>
>>> <body>
>>>
>>> <select style="width:50px">
>>> <option  selected>[select]</option>
>>> <option  value="">Test </option>
>>> <option 
>>> value="">fffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> <option 
>>> value="">ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff</option>
>>> </select>
>>>
>>> </body>
>>> </html>
>>>
>>>
>>>
>>
>>
>
>
date: Wed, 5 Mar 2008 21:39:01 -0600   author:   Peter am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us