@JunkMaleDec 22.2011 — #Why? What is the porpose of forcing someone in to Javascript?
Have you considered the vast majority of internet users access from a PDA, Mobile phone or other portable device and that these browsers have limited or no javascript support?
My mobile phone for example understands javascript but it can not handle some things like pop ups, they simply do not exist.
If you insist on using javascript, then using something like... [CODE]function firemeupbaby(){ document.getElementById("theButton").disabled = false; }[/CODE]
@xelawhoDec 22.2011 — #When the page loads, if JS is enabled, the disabled button will enable so it can be clicked otherwise if will remain greyed out.[/QUOTE]
no... because the button has to start off as disabled. Apart from that, it's hard to see how your code differs in any real way from what I posted in #2 ?
@KorDec 23.2011 — # Have you considered the vast majority of internet users access from a PDA, Mobile phone or other portable device and that these browsers have limited or no javascript support?[/QUOTE] eeer, what? If a portable device has a browser, that browser does run the vast majority of the javascript methods. There are some exceptions, bugs, etc, but they are few and not so important. And, no, the vast majority of internet users still access the web from a workstation (PC, MAC) or a notebook. That means under a Windows or an Apple Operating System. So far.
But, yes, you are right about accessibility. Whenever is possible, the developer should try to make his site accessible to everyone, with or without javascript.
@JunkMaleDec 23.2011 — #Point I am making is that mobile phones that are smart, like mine which will run javascript and java but the browser can not handle things like popups.
It does help to understand why the button has to be disabled in the first place, why javascript needs to be relied upon. A programmer should always be looking at some level of redundancy back up plans if the primary method fails and it should be a graceful degrade and not one of the many kicking and screaming ones that *itch about you should turn things on... My philosophy in these situations is simple, If it aint on buddy, you moaning about it aint gonna make owt difference. Then 'X' click. Bye!
@KorDec 23.2011 — #Yes, JunkMale, I have already said that you are right regarding the general philosophy of creating HTML/JavaScript codes as accessible as possible.
Regarding pop-ups, that's not a big loss. For instance on all my browsers I have installed add-ons in order to block the pop-ups. Pop-ups are hated by everyone, thus this technique is now considered deprecated and irritating.