Hungry.Mind.-.JavaScript.Weekend.Crash.Course.2001.pdf

(26082 KB) Pobierz
645492064 UNPDF
JavaScript ®
Weekend Crash Course
Steven W. Disbrow
Hungry Minds, Inc.
New York, NY • Cleveland, OH • Indianapolis, IN
645492064.010.png 645492064.011.png 645492064.012.png 645492064.013.png 645492064.001.png 645492064.002.png
645492064.003.png
Preface
Web site. If you have no programming experience, you’ll find a complete
introduction to the JavaScript language along with examples of how to carry
out common Web-programming tasks. If you already know about “JavaScript the
language,” you’ll find a ton of tips and techniques that you can use to enhance
your existing Web sites.
Who Should Read this Book
If you need to put together a Web site that does something more than just sit
there, this book is for you. Over the course of one weekend, you’ll learn about the
JavaScript language and how it fits into the scheme of Web page creation. Along
the way, you’ll learn about lots of other Web-based technologies and how
JavaScript can work with them to create interactive and interesting Web sites.
It’s important to note that this is not a JavaScript reference book! If you are
looking for table after table of JavaScript language minutiae, you won’t find it
here. Instead, you’ll find examples of how JavaScript can be used to solve real
Web-programming challenges.
What’s in this Book
This book is divided into 30 sessions, each addressing one aspect of the JavaScript
language or some technique for which JavaScript can be used. Each of these ses-
sions should take you about 30 minutes to get through, although you can expect
T his book is for anyone who needs to learn how to create a JavaScript-based
 
645492064.004.png 645492064.005.png
x
Preface
to spend more time with each session if you examine the source code on the
accompanying CD-ROM. Because the goal of this book is to teach you the basics of
JavaScript in a weekend, it’s been broken into six parts:
Part I contains four lessons (which should take about two hours to com-
plete) that will teach you the basics of the JavaScript language and how
JavaScript fits into a Web page.
Part II is six sessions long (and should take about three hours to com-
plete). It will introduce you to some of JavaScript’s built-in objects, the
Browser Object Model, and the concept of browser events.
Part III is also six sessions in length. The focus of this part of the book is
on how JavaScript can be used to dynamically create HTML and manipulate
the various controls that are found in an HTML form.
Part IV is just four sessions long, but that’s just enough time to give you
an understanding of how you can create your own objects with JavaScript
and use them to enhance your Web pages. The last session in this part also
tells you how you can dynamically build and execute JavaScript state-
ments after your Web page has been loaded.
Part V is six sessions long. The sessions in this part focus on identifying
different browsers, using Dynamic HTML and Cascading Style Sheets, and
working with windows and frames.
Part VI is four sessions long and focuses on how JavaScript can be used to
communicate with other processes. These include server-side CGI processes,
browser plug-ins, and Java applets.
At the end of each session, you’ll find a short summary and a set of questions,
both designed to remind you of what you’ve learned in that session. At the end of
each part, you’ll find twenty questions that will test how much you actually
remember from the previous sessions. Some of these will be simple short-answer
questions, but many are actual programming puzzles. You are encouraged to try
and solve these on your own, but, if you need the answers right away, you’ll find
them on your CD-ROM. Once you’ve finished the entire book, you’ll probably want
to try the self-assessment test on the CD-ROM. This is a simple multiple-choice test
that will give you a good idea of how much you’ve actually learned.
In keeping with the title Weekend Crash Course, you’ll find that this book is
about learning how to get things done with JavaScript. Because of that, this book
is a bit different from most of the other JavaScript books out there. Whereas most
books start off by telling you how fragmented the JavaScript “standard” is (each
version of each browser has its own flavor of JavaScript) and then spend a tremen-
dous amount of time teaching you how to work around all the differences, you’ll
645492064.006.png 645492064.007.png 645492064.008.png
645492064.009.png
Zgłoś jeśli naruszono regulamin