Chapter 12: Cooking with Java and JavaScript
(The Global Computer)

Ingredients:

  • JavaScript
  • Java

For some dinners no meal is complete without a good cup of coffee. Coffee can be instant or ground and percolated slowly. The more effort that goes into the making, the better the taste.


Examples

JavaScript Examples
12.2.1 Hello World Text generated with JavaScript.
12.2.2 Declaring Functions Text generated by a JavaScript function call.
12.2.3 Controlling the Browser JavaScript to make the browser display a dialog box.
12.2.4 Cookies An example of using JavaScript to create cookies.
Java Examples
12.3.3 The Simplest Application HelloWorld.java is the code. Run HelloWorld.class through the MRJ JBindery to see the results. WARNING: HelloWorld.class is compiled code. You may prefer to compile the Java source yourself for security reasons.
12.3.4 The Simplest Applet HelloWorldApplet.java is the code. Here's a page that uses the applet.
12.3.5 More Complex Applets HelloNameApplet.java is the code. Here's a page that uses the applet.

Tables

Table 12-0 Miscellaneous URLs

Product Description
Java examples by Developer.com Examples of applets and other Java code.
Java Platform Ports by Sun Microsystems Ports for Java on many different operating systems.

Table 12-1 Sources of Additional Information on JavaScript

Product Description
Java Goodies by Developer.com Repository of JavaScript software and examples.
JavaScript Reference Manual by Netscape Netscape's online introduction to JavaScript basics.
JavaScript resources by Yahoo! Links to resources on JavaScript.
Javascripts.com by EarthWeb, Inc. Source of JavaScript examples and a weekly newsletter.
Reviews of JavaScript books by Bob Cunningham Reviews of recent JavaScript books.

Table 12-2 JavaScript Cookies

Product Description
Cookie example by hIdaho Design Example JavaScript for cookies.
Cookies with JavaScript by Netscape Netscapežs JavaScript handbook appendix on cookies.
Cookies with JavaScript by Cookie Central Cookie Central's JavaScript demos.
Duncan's JavaScript Cookies by Duncan Crombie More examples of JavaScript cookies.

Table 12-3 Sources of Additional Information on Java

Product Description
Brewing Java: A Tutorial by Elliotte Rusty Harold This tutorial has grown into a book called The Java Developer's Resource (Prentice Hall).
Java Platform Documentation by Sun Microsystems Information from the Java source.
Java resources by Yahoo! List of resources from Yahoo!
Java tutorial by Sun Microsystems A Java tutorial from the Java creators.
JMAC by Derek Panther A Macintosh Java news source.
MacJava by Dale Kirby and Todd Kirby The MacJava Web site.
Page Charmer by Mainstay Software A set of customizable interactive applets that enhance web pages without writing a single line of HTML code.
Reviews of Java books by Bob Cunningham Reviews of recent Java books.
The Java Language Environment by James Gosling and Henry McGilton A white paper by the Java developers summarizing the features and motivation behind the Java language.

Table 12-4 Mac OS JDK Ports

Product Description
ActionLine by Interactive Media Corporation Web authoring tool, that allows the creation of dynamic, interactive multimedia-rich web pages using Java technology but requires no programming.
CodeWarrior by Metrowerks A programming environment for several languages, including Java.
Mac OS Java by Apple Mac OS Runtime for Java (MRJ) home page.
SpotCheck by GenieWorks An inexpensive environment for Java development on the Mac.
Visual Café by Symantec Development software for Java.

Table 12-5 Java Libraries

Product Description
Jars.com by Gamelan Starting point for locating useful applets.
Products and APIs by Sun Microsystems The Java Developer's Kit (JDK) and other Java software.>

Table 12-6 JavaBeans Information

Product Description
JavaBeans by Sun Microsystems The component architecture for the Java platform.
JavaBeans Resource Listings by Jars.com Links to JavaBeans information and software.
Trail: JavaBeans by Andy Quinn A tutorial on the JavaBeans API.

Table 12-7 Java Servlet Information

Product Description
A new home for Java -- servlets by Simon St. Laurent A good introduction to how Java servlets might be used, from developer.com.
Goodbye CGI, Say Hello to Java Servlets by Webreview.com An introduction and tutorials for developing servlets.
Java Servlet API by Sun Microsystems The official Java Servlet page.
ServletExec by New Atlanta A high-performance, inexpensive Web application server and servlet engine that implements the Java Servlet API and JavaServer Pages (JSP) standards.