473,795 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

grey-out/disabled item in listbox

Hi,

Is there such thing that an item in the listbox is disabled and is
appeared grey-out?

How can I implement this in html/javascript?

Thanks
A
Mar 11 '06 #1
5 13580
acord wrote:

Is there such thing that an item in the listbox is disabled and is
appeared grey-out?

I assume you mean a <select> element?
To disable an option add the "disabled" attribute. It does not change
the color but does prevent the mouseover and click from having any affect.
To change the color as well, add a style, "option.disable " for instance,
that sets the colors.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 11 '06 #2
Jim Moe wrote:
acord wrote:
Is there such thing that an item in the listbox is disabled and is
appeared grey-out?


I assume you mean a <select> element?
To disable an option add the "disabled" attribute. It does not change
the color but does prevent the mouseover and click from having any affect.
To change the color as well, add a style, "option.disable " for instance,
that sets the colors.

Hi, this only work with firefox, but I can't get it to work under IE6.

thanks
A
Mar 11 '06 #3
acord wrote:
Is there such thing that an item in the listbox is disabled and is
appeared grey-out?


I assume you mean a <select> element?
To disable an option add the "disabled" attribute. It does not change
the color but does prevent the mouseover and click from having any affect.
To change the color as well, add a style, "option.disable " for instance,
that sets the colors.

Hi, this only work with firefox, but I can't get it to work under IE6.

URL showing a test case?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 11 '06 #4
Jim Moe wrote:
acord wrote:
Is there such thing that an item in the listbox is disabled and is
appeared grey-out?

I assume you mean a <select> element?
To disable an option add the "disabled" attribute. It does not change
the color but does prevent the mouseover and click from having any affect.
To change the color as well, add a style, "option.disable " for instance,
that sets the colors.


Hi, this only work with firefox, but I can't get it to work under IE6.


URL showing a test case?


need to use optgroup in this case.

A
Mar 11 '06 #5
acord wrote :
Jim Moe wrote:
acord wrote:
Is there such thing that an item in the listbox is disabled and is
appeared grey-out?


I assume you mean a <select> element?
To disable an option add the "disabled" attribute. It does not change
the color but does prevent the mouseover and click from having any
affect.
To change the color as well, add a style, "option.disable " for instance,
that sets the colors.

Hi, this only work with firefox, but I can't get it to work under IE6.

thanks
A


This has been reported in several pages of the wiki feedback pages on
MSIE 6 and MSIE 7. We're just like yourself, asking, waiting, expecting,
hoping that IE 8 will implement and support disabled for <option>.

"HTML 4 Support and spec violations
disabled attribute for option"
http://channel9.msdn.com/wiki/defaul...andardsSupport

"MSIE 6 and below do not support setting a specific option to be
disabled. Is this also fixed as part of the reworking of the select
element?"
http://blogs.msdn.com/ie/archive/200...76.aspx#514183
"When will Microsoft finally reach full support for HTML 4.01?
(...)
- label and disabled attributes for option and optgroup"
http://blogs.msdn.com/dmassy/archive...62.aspx#529968

"IE8 planning is already underway, and we appreciate the valuable
feedback we've been receiving on what we should be working on, as well
as the feedback we've received on IE7." Eric Law from Microsoft
http://blogs.msdn.com/ie/archive/200...76.aspx#515659
"Wow, congrats, you guys are finally where you should have been 7 years
ago. Quote from KunCong above
'Disable of OPTION is in the list of possible improvement in future IE
release.' "
http://blogs.msdn.com/ie/archive/200...76.aspx#522116

For MSIE 6, you can set the text color of the option node to gray as a
workaround.

Gérard
--
remove blah to email me
Mar 15 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5121
by: Isabelle | last post by:
Hey, How do you feel about using grey text for copy? I love grey for its neutral presence and ability to downplay something and give a clear and crisp look to the overall design of a site but at the same time, it's hard to read or take notice of. One to some words seem to be OK but blocks of grey text seem to be difficult to read and I have 20/20 eyesight. I have seen a few upscale home designer sites using this technique. i.e....
3
3281
by: Jacques Chaurette | last post by:
Hello all , thanks in advance for any help. While looking for a solution to how to replace the grey box while an applet loads, a search of Google got me an article by Glenn s. Peffers that claims to solve the problem. You can find the article at http://www.codeproject.com/java/javaappletwaitmsg.asp I have adapted the code to my situation but can't get it to work. Maybe someone has an idea how to fix it... Here is the code Cheers, Jacques...
0
1216
by: Sérgio Almeida | last post by:
Greetings Is it possible to change the color of a combobox (combobox arrow button), instead of grey? If so, how?? Thanks Sérgio
5
1676
by: Peter Verijke | last post by:
Hi, I have a possible framework bug. Sometimes when i call other code by double clikking the datagrid, i get on returning a grey colored cell over the active cell, still showing the old data. Even when i refresh the datagrid, and no records are on that position, the grey shadow cell is still there. Did somebody know a solution for that?
2
1175
by: Jeff Jarrell | last post by:
The thin grey line that goes across the editor to mark off the sub\functions\regions from one another, is there a way to turn it off? I was considering using an underscore for my private member variables, but with the grey line, it obscures it (on the last one).
10
2121
by: Andrew Kidd | last post by:
I see this when I'm stepping through in the debugger ... just thought I'd ask, and I just know it's going to be one of those "Doh" moments, but it's got me foxed just now.
2
2101
by: SpankyTClown | last post by:
When I set an objects data enabled property, the form displays these objects in grey. Is there any way to change the colour? Thanks
1
2706
by: David J | last post by:
Application does open, to a grey screen, but not access to database. 5mb of data exists, Explorer tells me so. I encountered a similar problem at work with Excel not so long ago, which was resolved by resizing the spreadsheet, Excel had minimized the spreadsheet. I think this is the same problem in Access, I just don't know where to go to adjust the minimize/maximize in Access. David
1
2074
by: joe3dge | last post by:
I tried making a game ing java and it complies fine but when i view it it just shows a grey box with a red x. i looked online and found the this is caused by a bad plug-in but all other applets work on my com puter. is it a problem with my code?
4
2721
by: marfola | last post by:
I'm trying to implement bottom-to-top vertical text using CSS attributes in IE : writing-mode: tb-rl; filter: flipv fliph; But I have encountered the following: the text is displayed with a grey shadow (instead of anti-alias). It seems that the problem is caused by the "filter:flip" attribute. Does anyone have a work around? (If I write the same text without the "filter" attribute, the grey shadow disappears but my text...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.