Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-03-2013, 06:25 PM   PM User | #46
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,037
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Quote:
Originally Posted by felgall View Post
Wikipedia gives the settlement figure as six million with another 3.7 million in fees - http://en.wikipedia.org/wiki/Nationa...et_Corporation

That page does not mention JavaScript but a lot of the discussion at the time was about how the site required JavaScript to work properly. There is lots of mention of accessibility and working without JavaScript is required for accessibility.
I read it that the issue was specifically its use of the alt attribute for clickable images featured on the website. Also the site was said to block keyboard access and required that transactions be performed solely with a mouse. No mention of Javascript. The case seems to turn on the specific wording of the Americans with Disabilities Act of 1990, which was passed before the internet came into general use.

Odd that the case did not unleash a torrent of similar outlandish claims. Why are a myriad of US lawyers not swarming round this honeypot? Anyone with a website is now exposed to this greenmail. Surely it is the subject of an appeal to the USA Supreme Court or whatever?

Luckly I live in the UK and am not subject to lunatic American jurisdictions. Although our own judges are often crazy enough as well where "human rights" (meaning the rights of criminals, terrorists, scoundrels, illegal immigrants, asylum seekers and so on) are involved. Somehow the human rights of ordinary, decent, law-abiding people to be protected against criminals etc. are never taken into account.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 02-03-2013 at 07:40 PM..
Philip M is offline   Reply With Quote
Old 02-03-2013, 07:12 PM   PM User | #47
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,037
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
I think that we have said it all. I for one have had (more than) enough of the topic, which somehow has got pasted into a long-finished thread.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 02-03-2013, 07:56 PM   PM User | #48
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
That was me because we took the original thread way off-topic. But because I’m a nice guy (and I was involved in taking it off-topic, too) instead of issuing infractions I moved it to this old thread which I split from another thread for exactly this discussion. Feel free to go wild here.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-03-2013, 08:30 PM   PM User | #49
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,462
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Quote:
Originally Posted by felgall View Post
There is lots of mention of accessibility and working without JavaScript is required for accessibility.
i hope you are saying this was a flawed assumption of the page, JavaScript is actually needed for top-notch accessibility these days. There is never a need to disable properly-written javascript for accessibility's sake, and doing so usually hampers A.T. rather than helping it.

in general, my response to debate presented in the thread:

if you want to deliver an informational brochure, js should not be required.

If you want to deliver something that does stuff instead of just saying stuff, it's probably gonna suck unless it requires javascript.

yes, you can use google maps, email, directories, slideshows, and embeded video without JS, but given the UX advantages to JS, why on earth would you want to?
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Users who have thanked rnd me for this post:
Philip M (02-04-2013)
Old 02-03-2013, 08:32 PM   PM User | #50
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,455
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by Philip M View Post
And WTF would anyone want to disable Javascript in his browser anyway nowadays? What benefits does he imagine will arise? It is as silly as saying that you could still use a website if you were viewing it on a monochrome monitor.
A lot of disabled people find that many web sites are completely unusable BECAUSE they use JavaScript and so they have no way of telling where they are in the page or what is happening. The need to have JavaScript off for those web pages in order that the pages will hopefully be usable without the JavaScript that is breaking the site for them.

If the site also fails to work without JavaScript and if there is no alternate site for them to use then they end up without a site that they can use for that particular purpose at all since the site is equally broken for them whether they have JavaScript enabled or not. No bank would take the risk of being taken to court over having not provided an accessible way for their disabled customers to use their site.

As an example of how allowing a page to be functional without JavaScript requires no more effort than one that can only use JavaScript, consider a form where ajax is to be attached to call the server and update the page based on what is entered into the form. With properly written JavaScript all of the JavaScript would be in an external file linked into the page. The server side code that the ajax calls would also be in a separate file. To get the page to work without the JavaScript you'd need to add an action parameter to the form, you'd need to link the server side script into the page and modify it very slightly so that it returns the result instead of echoing it when the script is included instead of being run directly. That's a whole four extra lines of code with most of it being exactly the same code for each form where you do this extra work. If the form were being used to make a purchase then the cost of the modifications would be recouped out of the profit the first time someone without JavaScript used the form to make a purchase.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:49 AM.


Advertisement
Log in to turn off these ads.