English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

My website uses forms and I wish to display some text when a user doesn't fill those forsm in correctly. The most common way seems to use Jscript and I was wonder what % of users actually have jscript running on their browsers - also are there any alternatives that don't require scripting?

2006-12-05 04:19:59 · 8 answers · asked by The Beast Of Bodmin Moor 1 in Computers & Internet Programming & Design

8 answers

My hit reports (I manage about 15 Web sites) show that about 5 percent of visitors do not have JavaScript enabled.

2006-12-05 04:45:40 · answer #1 · answered by Anonymous · 0 0

The above answers of 2-5% sound about right.
In terms of what you can do for validation for those who don't use javascript, it's vital to validate on the server side as well as on the client. Whatever system you're using to process the results of the form - PHP, ASP, Python etc - you should write a full validation procedure there as well, and return the user to the form if it fails. Often the logic is fairly easy to translate between the javascript and the server language.

2006-12-05 08:05:43 · answer #2 · answered by Daniel R 6 · 0 0

IMHO, the best and easiest way around this is to implement the script using a server side scripting language such as PHP, ASP or even a CGI script to check and then redirect to an error page appropriate to the situation. It will then not be dependant on any browser's settings since the script will run server side. The URLs below may contain tutorials and free script resources that may help you out. Good luck.

2006-12-05 04:40:24 · answer #3 · answered by griz803 5 · 0 0

From a brief review of visitors to the sites i host, it appears that less than 2% are in this field. Most of these users actually turn it off. If you are trying to code a site and use java script to perform a function. Make sure that it works fine without the java script enhancements. If you are using it for validation for forms, be sure to use some server side scripting (ASP PHP) to validate the form as well

2006-12-05 04:34:49 · answer #4 · answered by Anthony P 2 · 0 0

http://www.w3schools.com/browsers/browsers_stats.asp

Scroll down to just over half the page to see Javascript statistics. As you can see from the stats, many people are enabling Javascript but there is still a percentage that have it turned off.

There are no alternatives that dont require scripting. The least you will be able to do is download an example script and just modify it to suit your needs.

Such things are possible in dynamic (server-side) languages (such as PHP) but there is no point in learning another language (if you dont already know them) just to use it to validate a form.

2006-12-05 04:30:21 · answer #5 · answered by Anonymous · 0 0

5% sounds reasonable.
where 2% don't realize it
and 1% is running a browser that doesn't support it
and the rest don't know that pop-up blockers and latest release software can block any obnoxious javascript behavior.

2006-12-05 05:07:24 · answer #6 · answered by jake cigar™ is retired 7 · 0 0

I don't know the percentage but a lot of sites use it, and its supported by most major browsers. You don't really notice unless you use something like NoScript, which blocks them and you see how many sites rely on it.

2006-12-05 04:31:24 · answer #7 · answered by neorapsta 4 · 0 0

java itnersting

2006-12-05 06:05:27 · answer #8 · answered by SaveDarfur.org 2 · 0 0

fedest.com, questions and answers