... VBScript Programming fortheAbsolute Beginner, Second Edition
How This Book Is Organized
The second edition of
Microsoft WSH and VBScript Programming fortheAbsolute Beginner
has been improved ... XML and the XML tags supported by the WSH.
ã Appendix A, “WSH Administrative Scripting.” In this appendix, I show you some
practical examples that demonstrate the use of VBScript and the WSH ...
situations. This appendix will assist you in making a transition form the books
game-based approach to real-world script development.
ã Appendix B, “Built-In VBScript Functions.” In this appendix, I...
... Programming fortheAbsolute Beginner, Second Edition
Figure 1.1
The game begins
by knocking on
the door and
waiting for the
player to
respond.
Figure 1.2
The first clue is
provided.
Figure 1.3
The joke’s ... that reads Knock Knock; it
then waits forthe user to respond with “Who’s there?” The dialog between the game and
the player continues until the computer finally displays the game’s punch line. Figures ... choose
one over the other. For example, if you plan to run
Microsoft WSH and VBScript Programming fortheAbsolute Beginner, Second Edition
Definition
Within the context of this discus-
sion, the term...
... kind of
paragraph for quotes, for example, and another type for ordinary text. To use
the special form of the tag, just use the
class
attribute in the HTML, as I did
in the following text: ... (+) is used for addition, the minus sign (-) indicates
subtraction, the asterisk (*) is used for multiplication, and the forward slash
(/) is used for division. The remainder of the program ... and other information. They are much
like the drive-through restaurant. Users "drive up" to the Web server using a
Web browser. The data is exchanged, and the user can read the information...
... support
for ASP). However, by utilizing the power of IIS, you have a convenient staging plat-
form for developing your Web pages before you deploy them for public consumption
(thus ensuring that they ... not commonly known or other-
wise documented in the general refer-
ence material forthe subject or the Help
files that accompany the software.
TRICK
HINT
IN THE REAL WORLD
These special elements ... 234
Validating Forms 234
Determining Required Form Fields 235
Testing Form Validation in a Browser 237
Validating Other Form Elements 239
Utilizing the FrontPage 2000 Database Results Wizard 240
Viewing the...
... sweater!!");
FIGURE 2.4
The Low Temp
program generates
a random value for
the temperature.
FIGURE 2.5
The program
suggests attire
appropriate for the
current weather
conditions.
FIGURE 2.6
This run of the
program ... function
for the computer. They hold information until the computer needs to work with it.
22
J
a
v
a
S
c
ri
pt
P
r
o
g
r
a
m
mi
n
g
f
o
r t
he
A
b
s
ol
u
t
e B
eg
i
n
n
er
The Project: The Fortune ... tells the
computer to analyze the condition. Any condition
will evaluate to either true or false. The computer
will execute the code between the left brace (
{) and
the right brace (
})
only
if the...
... 143
The Fortune Teller Game 144
Fortune Teller Basics 145
Creating an ODBC Connection forthe Fortune.mdb
Database 146
Creating the Fortune_Info.asp Data Input Page 148
Working with the If Then ... 154
Fortune_Process.asp—Defining the Page Header
Information 156
Fortune_Process.asp—Reading Previous Fortune Entries 156
Fortune_Process.asp—Generating the Magic Number
for the New Fortune 157
Fortune_Process.asp—Displaying ... you are comfortable with where to save
them (i.e., in the Inetpub directory) and how to save them (that is, with the .asp extension).
4. Take a few moments to search the Web for more information...
... execute them.
Ajax Programming fortheAbsolute Beginner
32
1. Create a new HTML page.
2. Create the application’s text file.
3. Test the HTML version of the application.
4. Enhance the application ... to load the application into
HINT
Ajax Programming fortheAbsolute Beginner
20
defined and available before the rest of the HTML page loads, but do not automatically execute
them when the HTML ... Start the development of the application’s JavaScript.
3. Develop the rest of the application’s programming logic.
4. Execute your new application.
Step 1: Writing the Application’s HTML
The first...
... information in all the form elements is sent to a program specified by a special attribute
of the form. This program processes the information from the form and returns a result,
which looks to the user ... 6/MySQL Programming fortheAbsolute Beginner
14
Making a Two-Dimensional Associative Array 169
Building the HTML forthe Associative Array 169
Responding to the Query 171
Building the Two-Dimensional ... vari-
able doesn’t exist. If the variable doesn’t exist yet, the program creates the appropriate form
to get the data from the user. If the variable does exist, the program branches over to code
that...
... checking the Require
Variable Declaration option in the Tools/Options menu item of the VBA IDE.
Following the variable name, the data type is specified forthe variable. In the
example above, the ... we test for one pair of dice with the same value. Another If/Then/Else code
structure and six condition expressions for each
If/Then or ElseIf/Then statement
will determine whether the user ... on the Command Button control while in design
mode. You can also select the appropriate object (cmdInsertHeading) from the
object drop-down list in the code window forthe worksheet on which the...
... tech-
niques. The game begins by displaying the message “Knock Knock” in a pop-up dialog box.
It then waits forthe player to reply by typing “Who’s there?” The game then replies “Panther”
and waits forthe ... Programming for the
Absolute Beginner
represents the culmination of efforts provided by a
number of individuals over the last two years. Todd Jensen served as the
acquisitions editor forthe first ... Programming fortheAbsolute Beginner, Second Edition
Figure 1.1
The game begins
by knocking on
the door and
waiting for the
player to
respond.
Figure 1.2
The first clue is
provided.
Figure 1.3
The joke’s...
... harder to
write the captions forthe three verses than the verses themselves. The
print
statement simply places the value of the
$verse
variable in the
appropriate spots of the output HTML. ... kind of
paragraph for quotes, for example, and another type for ordinary text. To use
the special form of the tag, just use the
class
attribute in the HTML, as I did
in the following text: ... but the line at the end of the quote does.
Programming on the Web Server
The Internet is all about various computers communicating with each other.
The prevailing model of the Internet is the...
... fun, then Premier Press’s
for the
absolutebeginner series is just what
you’ve been waiting for!
ASP Programming
for theAbsolute Beginner
ISBN 0-7615-3620-5
C Programming
for theAbsolute Beginner
ISBN ... 1-931841-52-7
C++
đ
Programming
for theAbsolute Beginner
ISBN 0-7615-3523-3
Java
Programming
for theAbsolute Beginner
ISBN 0-7615-3522-5
Microsoft
đ
Access VBA Programming
for theAbsolute Beginner, Second ... 1-59200-002-9
Palm
Programming
for theAbsolute Beginner
ISBN 0-7615-3524-1
Python Programming
for theAbsolute Beginner
ISBN 1-59200-073-8
Microsoft
đ
Windows
đ
Shell Script
Programming fortheAbsolute Beginner
ISBN...