View Single Post
Old 02-01-2013, 08:53 PM   PM User | #33
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,454
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 Frankie View Post
I don't program anymore for people who have JS disabled, because only some 1.3% has. See http://www.searchenginepeople.com/bl...avascript.html. And those who have will constantly run into problems on the web, so they are used to dysfunctional sites.
One site had to pay out many millions of dollars because their site was dysfunctional like that and a visitor sued them for breaching the anti-discrimination laws that applied in the visitor's country.

Most sites work without JavaScript and so when those who can't use your site tell their fields and their friends tell their friends then they will all switch to using one of your competitors sites.

Most browsers now allow you to have JavaScript on or off on a site by site basis and so while most people would have it on for a site they know such as search engines they may have it turned off for all other sites. Just because searchenginepeople looked at sites and determined that only 1.3% of people didn't have JavaScript at all doesn't mean that there are not another 5 or 10% who have it selectively disabled for all sites except those that they specifically allow it for.

100% of people who want to bypass any validation in a web page will turn off JavaScript. So you can't make a field "required" using JavaScript because anyone c an leave the field blank simply by bypassing your script.

If they wish, your visitors can add their own JavaScript to your web page. People could visit your web page with JavaScript enabled for the page and have their script delete your script from the page so that JavaScript is enabled but your page doesn't contain any of your JavaScript any more by the time the page tries to run it.
__________________
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