Previous sections of this chapter covered the IIS application development project,
which is a server-side Web development technology new with VB6.
This section turns to a second Web development technology that is also new
with VB6, the DHTML project. Unlike an IIS application, an application created
with DHTML runs client side, in the environment of the end user’s Web browser.
A DHTML page is implemented as an ActiveX DLL and support files that are transferred
to the machine where the user’s browser resides. The object model for DHTML
pages includes the following:
BaseWindow—Represents the browser and displays (but
does not contain) the Document.
Document—Represents the HTML page viewed in the browser
and contains the DHTMLPage and HTML elements.
DHTMLPage—Represents the DHTML runtime environment.
- HTML elements—Individual elements of HTML functionality
that reside on the HTML page. Such elements can either be defined by sets of HTML
tags, or as HTML controls that you place on the DHTML Page Designer’s surface
from the ToolBox. In a VB DHTML application, programmers can manipulate HTML elements
in much the same way that they manipulate control objects in standard VB applications.
Creating a Web Page With the DHTML Page Designer
- Modifying a DHTML Web Page and Positioning Elements