DAWN Ontario: DisAbled Women's Network Ontario

Technology Info, Tips, FAQs
You Can Use

Java FAQs


What is Java?

Java is a computer language created by Sun Microsystems. It is used to create small programs called 'applets' (see below for defination of Java applets). Java applets can be incorporated into web pages, making them more interactive.

In theory, applets are capable of doing anything that conventional small applications can do, but they perform their tasks right in your browser. The most serious limitation to what can be done with Java on the World Wide Web is the speed of the Internet (rather slow, as we all know).

Currently, Java is used primarily as a means of adding multimedia content to Web pages -- things like sound, video, and scrolling text. What really distinguishes Java, however, is its potential to supply true interactivity to the web.

If you're curious to discover some examples, you'll find an excellent collection of sample JavaScripts and Java applets at the Gamelan website -- the official directory for Java at this pinpoint URL: http://www.gamelan.com/



What are Java applets?

Unlike ordinary applications, which reside on the user's hard drive, a Java applet resides instead on a Web server.

When a Web page containing a Java applet is viewed with a Java-compatible browser such as Netscape Navigator 3.x, Netscape Communicator 4.x, and Microsoft Internet Explorer, the applet's code is automatically downloaded to your computer and executed within the browser. This is different from simply being 'parsed' by the browser along with the HTML code, as in JavaScript.

Java applets can work this way because they are so much smaller than conventional applications, and take little time to transfer across the phone lines that connect your computer to the server where the applet originates.



What is JavaScript?

JavaScript is a scripting language created by Netscape Communications and Sun Microsystems. JavaScript is based loosely on Sun's Java programming language -- http://java.sun.com/.

JavaScript is not an alternative to Java, but a complement to it. Since JavaScript can't be used to create applets, it's more limited than Java, but it has advantages as well. JavaScript is often faster to load, and easier to use for small tasks, such as generating moving text and performing simple calculations.

At a technical level, JavaScript and Java actually share little beyond the similarity in their names. But since they often produce a similar result, for the typical user many of the differences are unimportant.

One meaningful distinction is that scripts created with JavaScript are incorporated into the HTML code itself. The code of a Java applet is not, although Web content created with either tool will appear in your browser. Beyond this distinction, it's only important to remember that JavaScript and Java are not the same thing.



How do I know if I need Java and JavaScript enabled?

The truth is that at many sites there's still little if any content that is dependent on Java or JavaScript. If you disable them you're unlikely to notice a difference right away.

But usage of Java and JavaScript is increasing rapidly, so unless you're having problems, you'll probably want to keep them enabled. If you're having difficulties that appear to be Java or JavaScript-related, you can simply try disabling one or both of them, and see how it goes.

There's no harm in turning them off aside from the missing content. It will not always be apparent when you're missing something, but well-designed Web pages often provide notification of important Java or JavaScript content.



How do I turn Java and JavaScript on or off?

By default, Java and JavaScript are enabled (turned on) in your Internet software. To disable (turn off) Java and/or JavaScript, do the following:


Netscape Communicator 4.04 and 4.7
1. Click the Edit menu, then click Preferences...
2. Click the Advanced category.
3. Click to uncheck one or both of the Enable Java and Enable JavaScript checkboxes. Click OK to save your changes.


Microsoft Internet Explorer
1. Click the Tools menu, then click Internet Options.
2. Click the Security tab.
3. Click the Internet zone.
4. Click the Custom Level button.
5. Scroll down the list until you find the Scripting section.
6. Under Scripting of Java applets, make sure that Enable is selected.
7. Click OK to save the changes.
8. Click OK to close the Internet Properties window.


Netscape Navigator 3.01
1. Click the Options menu, then click Network Preferences...
2. Click the Languages tab.
3. Click to uncheck one or both of the Enable Java and Enable JavaScript checkboxes. Click OK to save your changes.

To enable Java and/or JavaScript, reverse the process described above.



What can I do in response to JavaScript errors?

JavaScript errors can be caused by many things. Like any computer language, JavaScript is only as effective as the person doing the coding makes it.

Much of the time the only thing to be done is to inform the Webmaster of the site in question that something seems to be wrong.

However, if you're getting JavaScript errors or unexpected quits, try letting the page completely load before complaining. Many JavaScript errors are caused when a user clicks somewhere on the page before it has completely loaded.



Can I catch a computer virus from running Java applets on the web?

No. Java is virus-proof. Unlike ordinary applications, Java applets can't alter data on your hard drive, therefore Java poses no risk of infection by computer viruses.


back to Technology Content Index

 

MailWasher Pro is the web's most technologically advanced anti spam software available. Get rid of unwanted emails forever - only $29.95
MailWasher Pro is the web's most technologically advanced anti spam software available!
Get rid of unwanted emails forever - only $29.95
Order Now

 

Return to DAWN Ontario

Events Calendar
events, conferences etc

Featured News & Alerts

What's New
additions to the site indexed daily

Contact Us

Sign our Guestbook!


Website created & maintained
courtesy of Barbara Anello

DAWN Ontario
Box 1138 North Bay, ON P1B 8K4