• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Short question about javaScript

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all!

I have one short question:

at work, we log to our computers using active directory accounts and all of the privileges are set by our security department ( I guess using active directory itself? ).

One of the things that they disabled while browsing internet is javascript. Because of that , many web sites that uses JavaScript simply don't function properly when I open it from office. However, some sites still do! At least most of JavaScript that they use... And some function entirely ( for example sites developed using gwt, such as gmail ).

I was just wondering, what do I need to do when developing some web application, so that I could use it weather or not someone disabled use of JavaScript inside some company...?
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Javascript is disabled, then it's disabled, and won't work at all; if Javascript from some sites still works, then it's obviously not disabled. Perhaps rather than disabling Javascript in your brower, they're blocking (some, but not all) Javascript at your corporate firewall? That's pretty common.

If you want your site to work regardless of whether Javascript is available, then the only thing you can do is make sure there's a way to do everything whether or not Javascript is present. Javascript should be used to make your basic site better, rather than being the only way to interact with it.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good web developers write their applications so they work with or without JavaScript disabled.

When JavaScript is disabled, than your experience is less dynamic and full of postbacks.

Eric
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is called "graceful degradation" and it's rather an art.

Libraries such as jQuery are geared toward helping you do this. You set up the markup such that things work in a primitive manner, and then instrument it with JavaScript if it's enabled to work in a fancier "whizz-bang" manner.
 
    Bookmark Topic Watch Topic
  • New Topic