View Full Version : Why Do I Have a Fear of Using JavaScript?

Feb 22nd, 2007, 12:16 AM

Consider this post more of a therapy session. I have this anti-javascript attitude that I've been carrying around with me for awhile and I really don't know why.
It's not that I don't understand javascript or don't think it's useful. Maybe my fear of it is based on other peoples opinions about it. As I write this, I'm recalling people I've encountered who have used phrases such as "evil javascript" or "eww, javascript" or "insecure javascript" when discussing web development.
Or maybe I avoid using javascript because of accessibility issues, meaning that a user can disable javascript in their browser if they choose. In doing so, part of my application is now useless to that user.
For whatever reasons I have been avoiding using javascript, I would like your thoughts on it. Do you avoid it too? If so, why? Or are you of the opposite frame of mind - you love to use javascript in your web development? Or maybe you use it only when necessary. Either way, I'd appreciate your thoughts.



Feb 22nd, 2007, 12:26 AM
I think its fine to use javascript however if you use javascript your site must still be usable. A good example of this is the Lightbox script. It was written quite well. If javascript is disabled the user will still see the image but it won't be in its fancy sliding effect. Javascript adds that client/site interactivity. If you want to have a navigation menu done in all javascript then fine but provide an alternative navigation menu for users who have js disabled.

Feb 22nd, 2007, 11:20 AM
I agree with _Aerospace_Eng_. It is a useful language but web sites should not rely on it to operate. Like Nick I have a fear of it. I think its all the predefined classes and properties that confuses me. However I am determined to learn how to use. If anyone knows of a comprehensive list of predefined objects and funstions I would be very grateful.