Is this a reliable way to test for Javascript on/off across most browsers?
I would like to disable registration on my website if javascript is not enabled as I use it to validate some aspects of my registration forms.
javaEnabled a reliable way to test whether Javascript is on?
Moderator: General Moderators
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
Mudkicker: Just make sure that your html/css is compliant with the standards and then test on IE and firefox - since frirefox, Opera, netscape and safari all display the same 95% of the time - so you can be sure that it will be ok on most browsers. Of course the only 100% way is to test it on all.
A good idea would be a website where you enter your url and then the server loads your page with several browsers and takes screen shots which it then shows you.
Voltrader: You can try to show the text/form on the page with javascript - so if they dont have it it wont show the form and they cant register.
A good idea would be a website where you enter your url and then the server loads your page with several browsers and takes screen shots which it then shows you.
Voltrader: You can try to show the text/form on the page with javascript - so if they dont have it it wont show the form and they cant register.
Re: javaEnabled a reliable way to test whether Javascript is
The best way is to validate using somethin gon the server side, like PHP. Don't rely on JavaScript in being the only method of validation.voltrader wrote:I would like to disable registration on my website if javascript is not enabled as I use it to validate some aspects of my registration forms.
My reg forms are a mixture of php and javascript. It's just that radio buttons and check boxes lend themselves easily to javascript controls.
Thanks for the advice -- I'll use <SCRIPT> to forward to reg page and <NO SCRIPT> to echo javascript-needs-to-be-enabled message.
It looks like noone really uses the javaEnabled function.
Thanks for the advice -- I'll use <SCRIPT> to forward to reg page and <NO SCRIPT> to echo javascript-needs-to-be-enabled message.
It looks like noone really uses the javaEnabled function.