473,327 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

<option disabled> in IE

Hi

The disabled attribute in the option tag seems not to work in IE (version
6). Does anyone know a workaround for this?

Thanks for a hint.

--
Markus
Jul 20 '05 #1
5 19352
in post <news:3f***********************@news.easynet.ch>
Markus Ernst said:
The disabled attribute in the option tag seems not to work in IE (version
6). Does anyone know a workaround for this?


use scripting to remove the <option>
--
brucie
01/December/2003 07:49:55 pm kilo
Jul 20 '05 #2
"brucie" <br******@bruciesusenetshit.info> schrieb im Newsbeitrag
news:bq*************@ID-117621.news.uni-berlin.de...
in post <news:3f***********************@news.easynet.ch>
Markus Ernst said:
The disabled attribute in the option tag seems not to work in IE (version 6). Does anyone know a workaround for this?


use scripting to remove the <option>


Thank you brucie for this idea.

I would actually like to show the entry, but make it not selectable. The
select box displays a hierarchy of nodes which is not consistent anymore if
a node is not displayed. It's purpose is to assign the actual node to
another parent one. So I have to prevent the possibility of assigning a node
to itself.

I can use Javascript to display a warning and return false if the entry is
selected, and serverside scripting to not accept the entry if the user has
disabled Javascript. But if there is a HTML-only solution I would of course
prefer it.

It is not a big problem anyway, as most IE users work with Javascript on,
and other browsers support the disabled attribute correctly.

--
Markus
Jul 20 '05 #3
"Markus Ernst" <derernst@NO#SP#AMgmx.ch> writes:
"brucie" <br******@bruciesusenetshit.info> schrieb im Newsbeitrag
use scripting to remove the <option>


Thank you brucie for this idea.

I would actually like to show the entry, but make it not selectable. The
select box displays a hierarchy of nodes which is not consistent anymore if
a node is not displayed. It's purpose is to assign the actual node to
another parent one. So I have to prevent the possibility of assigning a node
to itself.


I have a similar application, but I use radio buttons rather than
<option>s which means that I can easily remove the button for that
one, while still keeping it in the hierarchy.

It does mean for large hierarchies the page is very long, but that's
no worse and possibly better than a mile of <select>.

--
Chris
Jul 20 '05 #4
"Chris Morris" <c.********@durham.ac.uk> schrieb im Newsbeitrag
news:87************@dinopsis.dur.ac.uk...
"Markus Ernst" <derernst@NO#SP#AMgmx.ch> writes:
"brucie" <br******@bruciesusenetshit.info> schrieb im Newsbeitrag
use scripting to remove the <option>


Thank you brucie for this idea.

I would actually like to show the entry, but make it not selectable. The
select box displays a hierarchy of nodes which is not consistent anymore if a node is not displayed. It's purpose is to assign the actual node to
another parent one. So I have to prevent the possibility of assigning a node to itself.


I have a similar application, but I use radio buttons rather than
<option>s which means that I can easily remove the button for that
one, while still keeping it in the hierarchy.

It does mean for large hierarchies the page is very long, but that's
no worse and possibly better than a mile of <select>.


Thank you, very good idea :-)

--
Markus
Jul 20 '05 #5
"Markus Ernst" <derernst@NO#SP#AMgmx.ch> wrote:
I have a similar application, but I use radio buttons rather than
<option>s which means that I can easily remove the button for that
one, while still keeping it in the hierarchy.
- - Thank you, very good idea :-)


I think the use of radio buttons is the best way to go here, as so
often when you encounter problems with the select element.

But should you use select, you could add a little bit of CSS to
simulate the effect of the disabled attribute on IE, e.g. <option
disabled="disabled" style="color:#999; background:white" ...>

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #6

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

Similar topics

2
by: Andrea | last post by:
Hi, I'm trying to emulate part of our client-server application as a web site so customers can use it, and I'm stuck when it comes to re-ordering items in a list. Basically we have a list of...
1
by: Ang Talunin | last post by:
Hey, I wondering if it's possible to retrieve all the <option>-fields from a <select> when posting a <form> to a php file Example: I've got a form like this: <form action = phpfile.php...
6
by: Hal Vaughan | last post by:
I'm using KDE on Linux, with Konqueror as the testing browser for this project. I've recently upgraded, so I realize some of the bugs I'm dealing with may or may not be my program, and could also...
1
by: C Chang | last post by:
This is my first time to use the DISABLED in the option tag. My ASP page dyanmically created the word "DISABLED" and put into the tag ( either a blank or the word "DISABLED"), however when it was...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
1
by: frey | last post by:
i tried to create a dropdown menu and use the option as a control to change content inside another text area the code is like this: <select name="xxxx"><option onclick="changeunitprice(29.87)"...
4
by: Man-wai Chang | last post by:
-- iTech Consulting Co., Ltd. Expert of ePOS solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
4
by: pplers | last post by:
Here is config.php: <?php //The vars are all ok. $dbhost = 'localhost'; $dbname = 'forum'; $dbuser = 'toor'; $dbpass = ''; ?> Here is a part of functions.php: <? require "config.php"; //It...
14
by: The Natural Philosopher | last post by:
This is a nasty one and I can't see my way out of it. I have a bunch of select statements in a form, and each select statement has an onchange="do_something(this)" in it, and this works...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.