★ wanayoo — archive 1999 http://javascript.about.com/compute/javascript/library/weekly/aa071999.htmNouvelle recherche | Portail wanayoo
Enter Sweepstakes! · Advertise on this site · Get Bargains
About.com  
You are here:  About.com > Computing/Technology > Focus on JavaScript
An About.com Site
   About.com
 
 One of Over 700 Sites
Your Guide with Guide
Nate Kassebaum
Bio | Contact

Subjects
Compatibility
Reference
Animation Scripts
Cookie Scripts
Image Scripts
Text Scripts
Frame Scripts
Form Scripts
HTML Scripts
Navigation Scripts
Password Scripts
Time Scripts
Window Scripts
Software
Beginner Tutorials
Cookie Tutorials
Image Tutorials
Text Tutorials
Form Tutorials
Frame Tutorials
Multimedia
Navigation Tutors
Time Tutorials
Handling Variables
Window Tutorials

Subject Library 

All articles on this topic

Bookstore
Find books related to this topic Click Here

Videostore
Find videos related to this topic Click Here

ShoppingAbout
Your favorite products, right here Click Here

Stay up-to-date!
Subscribe to our newsletter.

Do you like our sites?
Wish to share them with others - and earn money?
Become an Affiliate

Luna Network
Apply to become
a partner
for this site.
Search for 
in   Sites A to Z
 
 

Uses for JavaScript

Dateline: 07/19/99

Today I'm going to highlight a few of JavaScript's best uses.

Form Validation
Sometimes you'll want your users to enter a specific type of data (say, a phone number or e-mail address) into a form field.  It's important that the user's input conforms to a certain format.  You can (and should) have your web server verify that this information is of the proper format before using it, but constantly depending on your web server can lead to lots of unnecessary work for your server as well as slow down your user's experience.

As an alternative, you can include JavaScript in your web pages to validate your forms on the user's machine before the data is submitted to the server.  (Note: Since not all browsers support JavaScript, it is a good idea to have your server verify the data as well.  Using JavaScript will still substantially reduce the load on your server.)  For information about Form Validation, see Form Verification: The Right and Wrong Way and Form Validation: 4.0 Stuff.

Make Your Site Look Fresh
A web site that looks up-to-date (whether or not it really is up-to-date) looks better than a web site that doesn't.  JavaScript can help you keep your web site looking up-to-date when you can't pay it constant attention.

See Today in JavaScript to learn a bit about how to do this, or visit Scripts - Time for some cut-n-paste scripts.

Make Your Site Look Cool
It's easy to get carried away with this one, so don't overdo it.  However, some popular "gizmos" that JavaScript does best are:

Text Scrollers
These gizmos scroll text inside of a form's textbox control.  For examples and tutorials, see Scrollies and More Interesting Scrollers.

Text Effects
These are ways to make text appear more interesting to attract attention.  Examples are Wavy Text, which makes text appear goofy by varying the font size, and The Color Fade, which fades text from one color to another.

Browser Compatibility
JavaScript has its share of incompatibilities.  Fortunately, it's also great at figuring out what its incompatibilities are.  Check out Detect Every Browser and Netscape This, IE That... for more information here.

Visit the message boards!

Previous Features

Enter an email address to send this page:
 
More Options
 
 Advertising
AllBusiness.com
Useful tools and services for startups.

Casino Online
Act NOW for 20% Cash Bonus $$

HotJobs.com
Better Jobs for a Better Life

ShopNow
Over 40,000 merchants in one place!

single pixel
single pixel
Marketplace
register domains
freebies
$60 in free calls
memory upgrade
0% intro apr
shop around!
high paying jobs
free cd
research a car
free software
activity planning
build a business
comparison shop
compare laptops
sales & bargains

 
Related sites
single pixel
on About.com 
Focus on Java
Focus on Web3D
HTML
Intranets
Perl
Personal Web Pages
Web Design
XML


Explore More On The About.com Network
Search
Arts/Humanities ·  Autos ·  Cities/Towns ·  Comedy ·  Computing/Technology ·  Cultures ·  Education ·  Food/Drink ·  Gadgets ·  Games ·  Health/Fitness ·  Hobbies ·  Home/Garden ·  Homework Help ·  Industry ·  Internet/Online ·  Jobs/Careers ·  Kids ·  Money ·  Movies ·  Music/Performing Arts  ·  News/Issues ·  Parenting/Family ·  People/Relationships ·  Pets ·  Recreation/Outdoors ·  Real Estate ·  Religion/Spirtuality ·  Science ·  Shopping ·  Small Business ·  Sports ·  Style ·  Teens ·  Travel ·  TV/Radio · 
 
single pixel

For more information, visit
About Us, Be a Guide, or Advertise. For rules of use,
read our User Agreement and
Privacy Policy.

Having a problem?
Report it here.

 © 2000 About.com, Inc. All rights reserved.