RE: [PHP] Re: Submit a form with a link

From: Date: Tue, 29 Apr 2003 11:17:17 +0000
Subject: RE: [PHP] Re: Submit a form with a link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145623@lists.php.net to get a copy of this message
> Anyone know a source of figures for what percentage of users have javascript > disabled? I can't imagine it can be more than a couple of percent if that. Unfortunately, even if you could get such stats they would be misleading at best, because the issue is somewhat more complicated. Most browsers allow different parts of java script to be switched on and off depending on the likelihood tit would be used for content and not maliciously. For instance, if your local newspaper's web site allows you to click on a link to bookmark their web page, and/or make it your home page, that would be content. However, if a pop up ad were to use javascript to change your home page and book mark their product, that would be malicious. Unfortunately, in the interest of preventing such malicious behavior, the default settings for most browsers might disallow those javascript functions. So even if javascript is enabled for 99% of all browsers, there is no guarrantee that the functionality you want is enabled. Which brings us to an exception to the rule. Microsoft Internet Explorer (and probably other browsers) allow you to designate trusted sites -- sites you know that won't use to screw around with your computer through javascript. So, if you happen to be designing a web site to allow salesman in the field armed with laptops to check in and file reports (or do something else useful) it is probably going to be easy enough to tell all the salesman to make your site a trusted site. But, if you are trying to provide content to the public at large, you are going to have to provide some checks to make sure the javascript functionality you want is working. -Dan Anderson

« previous php.general (#145623) next »