JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 4th, 2005, 10:35 AM
pml pml is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 8 pml User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 17 sec
Reputation Power: 0
How can I enable/disable Java Script in the browser?

Since I use Java Script in my pages it would be nice to be able to tell my visitors how they can enable Java Script, if they for some reason has disabled it.

How is that done?
Is the procedure any different between IE, FF and NE?

Reply With Quote
  #2  
Old April 4th, 2005, 11:50 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Behave.

If I want to surf with JS disabled, that's up to me, not you!

Reply With Quote
  #3  
Old April 5th, 2005, 11:48 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
agreed...
imagine the security hole that would occur if websites could enable javascript when the user has disabled it?

Reply With Quote
  #4  
Old April 5th, 2005, 05:11 PM
pml pml is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 8 pml User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 17 sec
Reputation Power: 0
Maybe a little clarification is needed...

I agree with both of you, but I am not looking for a way to automatically enable Java Script in each visitor's browser. As both of you very tacitly imply in your posts, that would not be very nice or smart.

However, what I'm looking for is a way to inform the visitor about how he or she temporarly can allow Java Script to run (if it is disabled and if they like me don't know how to enable/disable it). Otherwise event handlers such as Onclick/Onsumit etc. which I use in several places won't work, will they? And if they can't run the visitor will not be able to use the functions that my pages offer (but of course that's their choice, and I am aware of that). After all, isn't there a tiny chance that a person that visits your pages want to use everything you have to offer?

Reply With Quote
  #5  
Old April 5th, 2005, 06:00 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Then you need to redesign your site.

It is wrong, and in some cases illegal to rely on JavaScript for your
site's functionality. It should only be used for frills. There is nothing
you can do JS wise for functionality that you couldn't redo properly
using server side scripts, and proper html.

Reply With Quote
  #6  
Old April 6th, 2005, 08:55 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Most sites simply put a plain text message on the page stating that Javasacript should be enabled to view the site properly. Nothing programmatic about it. But as Agent47 states, relying on Javascript as a primary source of functionality is highly ill-advised.

- Search engines might not index your page properly, thus causing lower pagerank.
- Navigation and key features in Javascript are not accessible, and thus disable your entire site to those with special needs (people with disabilities using special types of internet browsers).
- Many users do disable Javascript, again likely giving those users a negative view of your site.

A lot of this does sound harsh considering it is common practice nowadays to use Javascript on a website. Most browsers do support it, and many sites utilize Javascript very well. I just hope you strongly consider the consequences of relying on Javascript to properly present your page to the public.

Oh, and I think the text message... Something like "If the page isn't displaying cleanly, try enabling Javascript by following these steps..." Don't forget to consider steps for all popular browsers.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > How can I enable/disable Java Script in the browser?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT