Cover image for Javascript for the world wide web
Title:
Javascript for the world wide web
Personal Author:
Series:
Visual quickstart guide
Edition:
5th ed.
Publication Information:
Berkeley, Calif. : Peachpit Press, 2004
ISBN:
9780321194398
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010053817 QA76.73.J39 N43 2004 Open Access Book Book
Searching...
Searching...
30000010157652 QA76.73.J39 N43 2004 Open Access Book Book
Searching...
Searching...
30000010057905 QA76.73.J39 N43 2004 Open Access Book Book
Searching...

On Order

Summary

Summary

This title aims to provide a quick and efficient route to learning JavaScript programming.


Author Notes

Veteran journalist and Mac guru Tom Negrino is the author of Macromedia Contribute for Windows: Visual QuickStart Guide and numerous other Visual QuickStart guides, including (with Dori Smith ) the last three editions of this volume. Dori Smith is a programmer and journalist who, like Tom, has several Visual QuickStart Guides under her belt, including Java 2 for the World Wide Web: Visual QuickStart Guide. Both authors are on the Steering Committee for the Web Standards Project.


Reviews 1

Library Journal Review

JavaScript's popularity shows no signs of waning, so libraries could benefit from up-to-date titles. A clear and cohesive guide recommended for beginners and all libraries, Visual QuickStart updates older editions with coverage of v.1.5, showing how to complete common tasks step by step, with typical and plentiful tips, screen shots, and tables. A companion web site (www.javascriptworld.com) at the time of this review included only scripts from the fourth edition but should soon be updated to include current cut-and-paste scripts and files. Appendixes address JavaScript "genealogy and reference," reserved words, CSS, and additional resources. Everything, also appropriate for beginners and all libraries, covers similar ground but with more background and fewer figures. Notes, cautions, sidebars, tables, and figures break up the text; appendixes provide quick references for HTML tags and JavaScript statements, classes, and objects. For intermediate to advanced users, Cookbook jumps right into coding examples. Each "recipe" contains a problem, solution, discussion, and useful See Also references; the book's coverage of common "how-to" questions ranges from concatenating strings to embedding XML data in web pages. Cookbook's discussion of both JavaScript and DHTML and clear explanations of common coding issues make it a fantastic reference for larger libraries. (c) Copyright 2010. Library Journals LLC, a wholly owned subsidiary of Media Source, Inc. No redistribution permitted.


Table of Contents

Introductionp. xi
Chapter 1 Getting Acquainted with JavaScriptp. 1
What JavaScript Isp. 2
JavaScript Isn't Javap. 3
Where JavaScript Came Fromp. 4
What JavaScript Can Dop. 5
What JavaScript Can't Dop. 6
The Snap-together Languagep. 7
Handling Eventsp. 9
Values and Variablesp. 10
Assignments and Comparisonsp. 11
What Tools to Use?p. 12
Chapter 2 Start Me Up!p. 13
Where to Put Your Scriptsp. 15
Hiding Scripts from Old Browsersp. 16
Putting Comments in Scriptsp. 17
Alerting the Userp. 18
Confirming a User's Choicep. 20
Prompting the Userp. 22
Redirecting the Userp. 23
Redirecting the User with a Linkp. 25
Browser Detectionp. 26
Chapter 3 Language Essentialsp. 29
Detecting Browser Plug-insp. 30
Around and Around with Loopsp. 32
Writing with Loopsp. 35
Using For/In Loopsp. 37
Using Do/While Loopsp. 39
Checking if Java Is Enabledp. 41
Functionsp. 43
Using Multi-level Conditionalsp. 46
Working with Functions That Return Valuesp. 48
Handling Errorsp. 50
Putting More than One Script on a Pagep. 52
Scrolling Status Barsp. 54
Status Bar Messagesp. 57
Chapter 4 Image Basicsp. 59
Creating Rolloversp. 61
Creating More Effective Rolloversp. 63
Putting Multiple Rollovers on a Pagep. 65
Triggering Rollovers from a Linkp. 67
Making Multiple Links Change a Single Rolloverp. 69
Working with Multiple Rolloversp. 72
Using a Function to Code Multiple Images with a Single Rolloverp. 75
Using a Function to Code Multiple Rolloversp. 77
Chapter 5 More Fun with Imagesp. 79
Creating Cycling Bannersp. 81
Creating Multiple Cycling Bannersp. 84
Making the Banner Cycling Wait for the Userp. 86
Adding Links to Cycling Bannersp. 87
Building Slideshowsp. 89
Building Wraparound Slideshowsp. 92
Displaying a Random Imagep. 94
Cycling Images with a Random Startp. 96
Displaying Multiple Random Imagesp. 97
Combining a Rollover with an Image Mapp. 99
Chapter 6 Frames, Frames, and More Framesp. 103
Keeping a Page out of a Framep. 105
Forcing a Page into a Framep. 106
Forcing a Site into a Framep. 108
Loading a Framep. 111
Creating and Loading a Dynamic Framep. 113
Sharing Functions Between Framesp. 115
Storing Information in Framesp. 118
Loading Multiple Frames at Oncep. 121
Browser Detection with Framesp. 125
Working with Iframesp. 127
Chapter 7 Working with Browser Windowsp. 131
Opening a New Windowp. 132
Loading Different Contents into a Windowp. 134
Opening a New Window Using an Image Linkp. 136
Opening Multiple Windowsp. 138
Opening Multiple Windows Simultaneouslyp. 140
Scrolling a Windowp. 142
Updating One Window from Anotherp. 144
Creating New Pages with JavaScriptp. 146
Closing a Windowp. 148
Creating a Control Panelp. 150
Positioning a Window on the Screenp. 152
Displaying an Alert when a Window is Loadedp. 154
Chapter 8 Form Handlingp. 155
Verifying Passwordsp. 157
Using Images as Submit Buttonsp. 159
Select-and-Go Navigationp. 163
Changing Menus Dynamicallyp. 166
Selecting Menu Itemsp. 170
Working with Radio Buttonsp. 173
Setting One Field with Anotherp. 176
Validating Zip Codesp. 180
Validating Email Addressesp. 184
Chapter 9 Forms and Regular Expressionsp. 193
Validating an Email Address with Regular Expressionsp. 195
Validating a File Namep. 200
Extracting Stringsp. 203
Formatting Stringsp. 206
Formatting and Sorting Stringsp. 210
Formatting and Validating Stringsp. 212
Chapter 10 Making Your Pages Dynamicp. 215
Putting the Current Date into a Web Pagep. 216
Working with Daysp. 218
Customizing a Message for the Time of Dayp. 219
Displaying Dates by Time Zonep. 220
Converting Military Time to AM/PMp. 223
Creating a Countdownp. 226
Working with Referrer Pagesp. 229
Writing Text into a Document on the Flyp. 230
Date Methodsp. 233
Chapter 11 Handling Eventsp. 235
Handling Window Eventsp. 236
Mouse Event Handlingp. 242
Form Event Handlingp. 249
Key Event Handlingp. 252
Chapter 12 JavaScript and Cookiesp. 255
Baking Your First Cookiep. 257
Reading a Cookiep. 260
Showing Your Cookiesp. 261
Using Cookies as Countersp. 263
Deleting Cookiesp. 265
Handling Multiple Cookiesp. 267
Displaying "New to You" Messagesp. 269
Chapter 13 Introducing CSSp. 273
Saying it with Stylep. 275
Styles with Classp. 279
Changing Fonts with CSSp. 282
Checking Your IDp. 284
Styles and Spansp. 287
Distinguished Linksp. 289
Positioning Absolutelyp. 291
Chapter 14 Working with DHTMLp. 293
DHTML Browsers & "Standards"p. 294
Moving an Object in Two Dimensions (Netscape 4.x only)p. 295
Moving an Object in Two Dimensions (Internet Explorer Win/Mac)p. 298
Moving an Object in Two Dimensions (Netscape 6+ only)p. 300
Moving an Object in Two Dimensions (Cross-browser)p. 303
Moving an Object in Three Dimensions (Netscape 4.x only)p. 305
Moving an Object in Three Dimensions (Netscape 6+ only)p. 308
Moving an Object in Three Dimensions (Cross-browser)p. 310
Moving DHTML Text (Cross-browser)p. 312
Modifying a DHTML Drop Shadow (IE Windows)p. 314
Rotating a DHTML Shadow (IE Windows)p. 316
Modifying a DHTML Glow (IE Windows)p. 317
Chapter 15 User Interface Design with JavaScriptp. 319
Pull-Down Menusp. 320
Sliding Menusp. 325
Tool Tipsp. 328
Click-Anywhere Form Fieldsp. 332
Chapter 16 Applied JavaScriptp. 335
Using an External .js Filep. 336
A Slideshow with Captionsp. 340
A Silly Name Generatorp. 343
Bar Graph Generatorp. 348
An Object-oriented Bar Graph Generatorp. 356
Style Sheet Switcherp. 361
Chapter 17 Manipulating Nodesp. 371
About Node Manipulationp. 372
Adding Nodesp. 374
Deleting Nodesp. 376
Deleting Specific Nodesp. 378
Inserting Nodesp. 381
Replacing Nodesp. 384
Chapter 18 Bookmarkletsp. 387
Your First Bookmarkletp. 388
Changing a Page's Background Colorp. 392
Web-safe Colorsp. 393
Word Lookupsp. 395
Viewing Imagesp. 397
Displaying ISO Latin Charactersp. 400
Converting RGB Values to Hexp. 401
Converting Valuesp. 403
A Bookmarklet Calculatorp. 404
Chapter 19 Working with Visual Toolsp. 407
The Pros and Cons of Visual Toolsp. 408
Using Behaviors in Dreamweaverp. 413
Flying Objects in Adobe GoLivep. 417
Creating Pop-Up Menus in Fireworksp. 420
Customizing Dreamweaverp. 423
Chapter 20 Debugging Common Errorsp. 427
The Built-in Debugging Aidsp. 428
JavaScript Debuggersp. 429
Common Errorsp. 431
Following Variables While a Script is Runningp. 435
Viewing Variables in Another Windowp. 436
Writing Error Messages to Another Windowp. 438
Appendix A JavaScript Genealogy and Referencep. 441
JavaScript Versionsp. 442
ECMAScriptp. 445
Browsers and JavaScriptp. 446
Object Flowchartp. 447
The Big Object Tablep. 451
Appendix B JavaScript Reserved Wordsp. 463
Appendix C Cascading Style Sheets Referencep. 467
Appendix D Where to Learn Morep. 475
Finding Help on the Webp. 476
Booksp. 481
Indexp. 483