TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
> We have a new engineering dept. head who has said he'd like me to
> learn JavaScript because we're going to be doing some Java-based
> stuff, and a lot of Web/browser-based html stuff in general. I said
> "Sounds great!" but I really know NOTHING about it.
>
> Have any of you tech writers learned something about JavaScript? Can
> you tell me what it is, and how it differs from, say, RoboHTML or MS
> FrontPage? Have you taken a class in it? Is it fun to work with? And
> anything else you'd like to throw in.
Beth,
JavaScript is a scripting (programming) language that can be used to
extend the capabilities of HTML documents on the Web. (Q: How does it
differ from FrontPage and RoboHTML? A: FrontPage and RoboHTML are
development tools that help you write documents in markup languages;
JavaScript is an actual programming language that lives inside HTML
documents and runs inside a web browser.)
There are two kinds of JavaScript: client-side and server-side. Since
client-side JavaScript is what 99% of the people in the world mean
when they say "JavaScript," client-side is what I'm going to describe
to you.
Here are some interesting things you can do with JavaScript:
-- Control the appearance and content of HTML documents
-- Control certain aspects of browser behavior (open up new windows or
dialog boxes, for instance)
-- Create interactive effects, like rollover buttons (you've seen these
on the Web--you roll the mouse over a link and it flashes or changes
color)
-- Validate data entered into forms
-- Perform mathematical operations.
You can write JavaScript as a chunk of code which is inserted into
your web page between <SCRIPT> tags; you can also write snippets
of JavaScript which attach to individual HTML tags.
Some older browsers do not support JavaScript, but recent versions
of Netscape Navigator and Internet Explorer have good JavaScript
support (with some slight, subtle differences in implementation
between the two... sigh.)
JavaScript must be carefully distinguished from Java. Aside from some
superficial similarities in syntax (say that five times fast!) Java and
JavaScript have nothing to do with each other. (JavaScript was
originally called "LiveScript" when Netscape developed it; Netscape
renamed it "JavaScript" to take advantage of all the Java marketing
hype a few years back.)
There are many good JavaScript books available, but the best information
tends to be on the Web. If you visit HotWired's "Webmonkey" site, you'll
find wonderful, accessible information about JavaScript, including some
great introductory classes, for free:
--
Barry Campbell | barry -at- webveranda -dot- com
Web Architect | (list/personal mail)
Summit Systems, Inc. | bcampbel -at- summithq -dot- com
22 Cortlandt Street | (business mail)
New York, NY 10007 | http://www.summithq.com