473,910 Members | 4,221 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabled Attribute

Hello,

Is disabled attribute available for <atag?
I am asking this because a new control in ASP.NET 3.5 is doing that.

Thanks,
Miguel
Nov 29 '07 #1
4 5234
On 29 Nov, 13:37, shapper <mdmo...@gmail. comwrote:
Is disabled attribute available for <atag?
Specification is here:
http://www.w3.org/TR/html4/struct/links.html#edef-A

and there's no "disabled" attribute. Only the user input controls
associated with <form(<input> , <selectetc.) support disabled.
I am asking this because a new control in ASP.NET 3.5 is doing that.
Then don't choose to build your projects with broken tools, like these.
Nov 29 '07 #2
shapper wrote:
Hello,

Is disabled attribute available for <atag?
No.
I am asking this because a new control in ASP.NET 3.5 is doing that.
Even earlier ASP.NET does that, I see, and it works even in Firefox. But
it isn't valid HTML and you can't count on it working everywhere: the
link may continue to be functional in some browsers.
Nov 29 '07 #3
Harlan Messinger wrote:
shapper wrote:
>Hello,

Is disabled attribute available for <atag?

No.
>I am asking this because a new control in ASP.NET 3.5 is doing that.

Even earlier ASP.NET does that, I see, and it works even in Firefox. But
it isn't valid HTML and you can't count on it working everywhere: the
link may continue to be functional in some browsers.
What does this attribute look like? Like this?

<a href="http://www.google.co.u k/" disabled="disab led">This shouldn't
work</a>.

This doesn't work (in the sense that the link works) in either IE6 or
Firefox 2, although the link does have a strange appearance in IE6.
Dec 2 '07 #4
On Dec 2, 11:21 am, Mark <u...@example.n etwrote:
Harlan Messinger wrote:
shapper wrote:
Hello,
Is disabled attribute available for <atag?
No.
I am asking this because a new control in ASP.NET 3.5 is doing that.
Even earlier ASP.NET does that, I see, and it works even in Firefox. But
it isn't valid HTML and you can't count on it working everywhere: the
link may continue to be functional in some browsers.

What does this attribute look like? Like this?

<a href="http://www.google.co.u k/" disabled="disab led">This shouldn't
work</a>.

This doesn't work (in the sense that the link works) in either IE6 or
Firefox 2, although the link does have a strange appearance in IE6.
Yes, it changes the background color of the link.
This is a mess. I already reported to Microsoft.

And I got a way around. I implemented a template in Asp.Net.

Thanks,
Miguel
Dec 2 '07 #5

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

Similar topics

2
1981
by: Matt | last post by:
what's the differences between readonly and disabled attribute?? When I do the post, it couldn't get both values <%= fname %>. any ideas?? <input type="text" name="fname" value="Joe" readOnly> <input type="text" name="fname" value="Joe" disabled>
2
5473
by: CES | last post by:
All, I'm at a loss, the code below works in IE but not in Netscape and I'm unskilled enough not to know why. Essentially this code looks thru all of the form fields and if the input box has a attribute of disabled="true", attribute would only be present if the field was disabled, then the label field's class is changed to a grayed out color. --- The first problem seems to be with the v==true statement, I've tried
5
28585
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color: #FFFFFF;
1
2803
by: Stewart Cambridge London, UK | last post by:
I've been having some trouble with a set of <select><optgroup><option> dropdowns. I've been experimenting with the disabled attribute in the <optgroup> and <option> tags. Seems to work in NN but not IE. Yet this link shows Microsoft advertising that the disabled attribute is supported by them.
4
2431
by: Mel | last post by:
how can i change disabled background on all form elements ?
5
13584
by: acord | last post by:
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
6
23851
by: tshad | last post by:
I am trying to disable and enable a checkbox from javascript. The problem is that if the checkbox starts out as: <input id="Override" type="checkbox" name="Override"/> I can change it back and forth with no problems. using disabled = true or disabled = false If I start out as:
3
7259
by: BrendanMcPherson | last post by:
How can I get a listbox to change a textbox on some selections. I have a listbox which only needs to be filled in on some selections. Is there a way I can have on some selections the textbox go disabled and turn grey?
0
1198
by: Swoosh | last post by:
Hi All, I am using ASP.Net Webcontrol to emit some HTML. The control is either a HyperLink or LinkButton. When I disable the control (by setting the controlls Enabled property) the following example HTML is emitted: <a id="nevermind" disabled="disabled" class="whatever">Reports</a>
0
9879
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
11349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10921
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
11055
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
10541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9727
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7250
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();...
1
4776
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
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.