PDA

View Full Version : JavaScript


sladmin
13-04-2007, 02:19 AM
Just a quick question; Does anyone here have JavaScript turned off?

Just a question that keeps rolling around in my head. Is it bad to use a lot of it on a website? I use it sometimes for small scripts and auto submission of forms.

siphilp
13-04-2007, 08:17 AM
hey mate you can download a tool bar for ff where you can toggle javascript on and off along with numerous other options(Web developer bar). Am sure there is one for IE aswell :S

I believe there is only a small amount of people with javascript off(genuine) however, I would always recommend you validate server side aswell as you could leave your form vulnerable....


Couple of links to check out :

Securing Web Applications - http://www.jason-palmer.com/general/securing-web-applications

Sql Injections - http://www.securitydocs.com/library/2656






Si

Ben Collier
13-04-2007, 01:12 PM
This is from W3 Schools and shows the trends over the last few years- as you can see more and more people have it on now! - http://www.w3schools.com/browsers/browsers_stats.asp

I wouldn't worry too much, but you can always use:
<noscript>Your browser does not support JavaScript!</noscript>
if it is disabled.

Agree with siphilp about server side to made sure!

sladmin
13-04-2007, 05:34 PM
Cheers for the links, have had a quick skim and it has helped. I think I'm going to put Javascript on the site, I mean I don't know anyone who has JS turned off. Plus as a bonus most the people visiting this website won't be tech gurus which means JS will be on by default :smilie:

Ben Collier
13-04-2007, 05:54 PM
Just make sure by disabling it you're not opening security vunerablities.

Ben