|
|
|
|
Thread title: Should I use Javascript? |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
09-01-2008, 08:45 PM
|
#1
|
Status: Junior Member
Join date: Dec 2007
Location:
Expertise:
Software:
Posts: 33
|
Should I use Javascript?
I currently intend to use Javascript in my portfolio site for form validation, a stylesheet switcher, and perhaps the navigation.
I am aware that some users turn off Javascript when they browse, but I am wondering if they are a significant number. Many of the treads concerning this subject I found on other websites where rather old, so I would like some recent opinions.
I understand that degrading well and accessibility are important for many sites. I am trying to gauge how important it will be for my own.
|
|
09-01-2008, 09:13 PM
|
#2
|
Status: Member
Join date: Feb 2005
Location: Quebec, Canada
Expertise:
Software:
Posts: 441
|
Use it in a non-obstrusive way, and make sure it has no negative impact for users that have it disabled. Those who have it enabled will see a little extra and those who don't won't even notice anything wrong if it degrades nicely.
|
|
03-24-2009, 02:25 PM
|
#3
|
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
Posts: 287
|
Originally Posted by xdoomx
Use it in a non-obstrusive way, and make sure it has no negative impact for users that have it disabled. Those who have it enabled will see a little extra and those who don't won't even notice anything wrong if it degrades nicely.
|
This is a nice thought, but if you are building an ajax powered site, not really viable. I'm currently working on a site that has a lot of different tabbed modules, all grabbing data from the server, this fails without JS turned on.
I'm all for use JS to add functionality, but in some cases, JS is needed just to make the site usable.
|
|
09-01-2008, 09:29 PM
|
#4
|
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
Posts: 5,200
|
Form validation: Use PHP or another backend language.
Stylesheet switcher: JS
Navigation: JS, although it's possible to do it with CSS only.
|
|
11-22-2008, 11:47 PM
|
#5
|
Status: I'm new around here
Join date: Nov 2008
Location: CA, United States
Expertise:
Software:
Posts: 18
|
Originally Posted by Andrew R
Form validation: Use PHP or another backend language.
Stylesheet switcher: JS
Navigation: JS, although it's possible to do it with CSS only.
|
I prefer to do navigation in CSS, rather than JS.
|
|
09-02-2008, 03:21 AM
|
#6
|
Status: Junior Member
Join date: Mar 2008
Location:
Expertise:
Software:
Posts: 91
|
Also you have to regard security as an issue here, people can easily edit javascript, so dont use it with sensible data.
|
|
09-02-2008, 01:01 PM
|
#7
|
Status: Member
Join date: Aug 2008
Location: Boca Raton, FL
Expertise:
Software:
Posts: 146
|
Originally Posted by iwearoddsocks
Also you have to regard security as an issue here, people can easily edit javascript, so dont use it with sensible data.
|
Follow that simple rule and you should be good to go
|
|
09-02-2008, 01:58 PM
|
#8
|
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
Posts: 6,894
|
Use javascript minimalistically, and work under these general rules:
1. Javascript can be disabled, added to, or even edited. What you give the browser is little more than a suggestion of what it should run.
2. Always work under the assumption that the data javascript gives you is forged.
3. Always (ALWAYS) validate your input with a server side language like PHP that can not be edited by the client.
|
|
12-27-2008, 12:20 PM
|
#9
|
Status: Junior Member
Join date: Jun 2008
Location:
Expertise:
Software:
Posts: 36
|
Javascripts are always good! I use 'em on my website too. They make the whole site so... professional but then again, cool. You know what I mean?
|
|
12-28-2008, 01:27 AM
|
#10
|
Status: Member
Join date: May 2007
Location:
Expertise:
Software:
Posts: 257
|
I think IE blocks JS unless you enable it when it asks with that little annoying bar at the top. Stupid IE.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|