The Wayback Machine - https://web.archive.org/web/20081201144942/http://www.webreference.com/html/tutorial16/2.html


spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / html / tutorials / 16 / 2

index12345678

Tutorial 16: Client-Side Scripting 101

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Scripting Ethics

Regardless of which language you use, the question that arises is whether or not to use scripts and what to use them for.

JavaScript has become quite powerful in recent times, and can be used for a lot of things. Many people have developed entire interactive applications using only Web pages sprinkled heavily with plenty of JavaScript. Should you do this too?

Personally, I believe you shouldn't. My views on the subject are laid out in more detail in a related Style Watch article which you might be interested in. In short, the problem with JavaScript is that it is not as widely supported or standardized as we'd like it to be, nor is it powerful enough for most uses.

Scripts can be used to add interesting and useful effects to Web pages much like style sheets can be used to add good-looking presentation. However, it is my conviction that an HTML document is first and foremost a document, and that it should be able to exist independantly as a document if you remove all of the presentation and special effects. Using JavaScript to create powerful navigation is OK, as long as you have good old-fashioned links as well. Using JavaScript to create presentation effects such as fade-ins and scrolling text is OK, as long as the document can be displayed as a plain old document too.

What you should never do on the Web is create a Web page or a set of Web pages that rely on scripts to be useful. If you want to create an interactive application on the Web, use something like Java or ActiveX. Even if you ignore the ethics of creating broken Web pages, technologies such as Java and ActiveX are much more suited to creating Web-based applications than HTML with JavaScript, and you will find that it's a lot easier to use them.

If you create a Web page that relies on scripting to be functional, it means this Web page will (a) be inaccessible to people whose browsers don't support scripting or who have disabled scripting in their browser preferences and (b) probably be completely meaningless and confusing to these people.

So don't. Scripts are nice, but make sure they do non-essential things. Above all, make sure all of the information available in your document is available even if you remove all scripts.

Moral warnings aside, let's get down to the actual nitty-gritty.

index12345678

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Copyright 2008 Jupitermedia Corporation All Rights Reserved.

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A; with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Crucial Triples Up With New Three-Channel DDR3 Kits · Meet the Finalists: Excellence in Technology Awards · Tealeaf Offers Insight to Mobile Customer Behavior

URL: http://www.webreference.com/html/tutorial16/2.html

Produced by Stephanos Piperoglou
Created: September 15, 1999
Revised: September 27, 1999

Morty Proxy This is a proxified and sanitized view of the page, visit original site.