1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<!-- This file generated using Python HTMLgen module. -->
<HEAD>
<META NAME="GENERATOR" CONTENT="HTMLgen 2.2.2">
<TITLE>HTMLgen 2.2.2 Online Documentation</TITLE>
<LINK rel=stylesheet href="HTMLgen.css" type=text/css title="HTMLgen.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" BACKGROUND="../image/bg-dots.gif" TEXT="#000000" LINK="#EE0000" VLINK="#990000">
<IMG src="../image/scripts.gif" height="40" width="472" alt="scripts.gif" border="0"><BR>
<A HREF="imagemaps.html"><IMG src="../image/back.gif" height="22" width="66" alt="Previous" border="0"></A>
<A HREF="independence.html"><IMG src="../image/next.gif" height="22" width="66" alt="Next" border="0"></A>
<A HREF="overview.html"><IMG src="../image/top.gif" height="22" width="66" alt="Top of Manual" border="0"></A>
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<H3>HTMLgen 2.2.2 Online Documentation</H3>
<H2>Embedded Scripts</H2>
<HR>
<h3>FEATURES</h3>
<P>A recent addition is support for scripting languages in
Netscape. This was primarily intended for JavaScript®, but
other scripting languages available through plug-in support such
as <em>you-know-what</em> may also be triggered. The callback
attributes, (<code>onChange, onBlur, onFocus, onSelect</code>),
have been placed in the appropriate classes throughout
HTMLgen. They show up mostly in the Forms objects but the
<code>onLoad</code> and <code>onUnload</code> callbacks are
available to the Document class as well.
<P>The Script class is the container of the script body
itself. The Document class has an attribute called script. This
can be set to either an instance of the Script class or a
sequence of such instances. It'll be emitted in the HEAD portion
and will therefore be loaded into browser memory before any of
the page contents which might use the functions defined
there. Script instances can be placed in the body of the
document but be aware that functions must be defined before they
are referenced. (OK that's obvious to you I know.:-)
<P>To see a couple sample generated pages click the Next Page
button. (It has nothing to do with Scripts but this page in
the last one in primary documentation series.)
<P><HR>
<A HREF="imagemaps.html"><IMG src="../image/back.gif" height="22" width="66" alt="Previous" border="0"></A>
<A HREF="independence.html"><IMG src="../image/next.gif" height="22" width="66" alt="Next" border="0"></A>
<A HREF="overview.html"><IMG src="../image/top.gif" height="22" width="66" alt="Top of Manual" border="0"></A>
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<BR><IMG src="../image/Buzz.gif" height="51" width="56" alt="Buzz.gif" align="bottom">
<FONT SIZE="-1"><P>Copyright © 1996-7 Robin Friedrich<BR>All Rights Reserved<BR>
Comments to author: <A HREF="mailto:friedrich@pythonpros.com">friedrich@pythonpros.com</A><br>
Generated: Tue Apr 20, 1999 <BR><hr>
</FONT>
</BODY> </HTML>
|