In Stock: Marketplace

Buy from our Authorized Marketplace Sellers

2 used from $6.11

JavaScript and DHTML CookbookTM View Larger Image

JavaScript and DHTML CookbookTM

Goodman, Danny (Author)

ISBN-10: 0596004672
ISBN-13: 9780596004675

List Price: $39.95
You Save: $33.84
Available from our Authorized Marketplace Sellers
Marketplace:
2 used from $6.11
null
BIH Author Biography
Danny Goodman has been writing about personal computers and consumer electronics since the late 1970s. He is the author of three dozen computer books, including Dynamic HTML: The Definitive Reference and The JavaScript Bible, and provides consulting services for client-side web scripting.Back Cover Copy
The majority of questions that show up on the numerous online forums for JavaScript and DHTML begin with "How do I...?" The JavaScript and DHTML Cookbook answers those questions. Over the years, bestselling author and scripting pioneer Danny Goodman has read thousands of forum threads and compiled lists of the problems that scripters of various experience levels frequently encounter. He has now applied state-of-the-art ECMA and W3C DOM standards and used best practices to create this extensive collection of practical recipes that can bring your web pages to life. The JavaScript and DHTML Cookbook is all about adding value to the content of a web page. This book is a comprehensive collection of problems, solutions, and practical examples for anyone using JavaScript and Dynamic HTML to enhance web pages. For every problem addressed in the book, there's a solution or "recipe"-a focused piece of code that web developers can insert directly into their applications. But the book offers more than cut-and-paste code. You'll also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to your designs. The recipes in the JavaScript and DHTML Cookbook range from simple tasks, such as manipulating strings and validating dates in JavaScript, to entire libraries that demonstrate complex tasks, such as cross-browser positioning of HTML elements and sorting tables. This book contains over 150 recipes on the following topics: * Working with interactive forms and style sheets * Presenting user-friendly page navigation * Creating dynamic content * Producing visual effects for stationary content * Positioning HTML elements * Managing browser windows and multiple frames The JavaScript and DHTML Cookbook is the ideal companion to O'Reilly's JavaScript: The Definitive Guide and Dynamic HTML: The Definitive Reference. If you own either of these books, the JavaScript and DHTML Cookbook is a must-have.BDS Summary
This is a comprehensive collection of problems, solutions and practical examples for anyone using Dynamic HTML to build web pages.Long Description
On numerous online forums for JavaScript and DHTML, the majority of questions begin with "How do I...?" This new Cookbook provides the answers. After reading thousands of forum threads over the years, author and scripting pioneer Danny Goodman has compiled a list of problems that frequently vex scripters of various experience levels. He has now applied state-of-the-art ECMA and W3C DOM standards and used best practices to create this extensive collection of practical recipes that can bring your web pages to life. The "JavaScript & DHTML Cookbook is all about adding value to the content of a web page. The book focuses on practical and sensible applications of scripting, rather than flying images and gratuitous color changes. For every problem Goodman addresses, there's a solution or "recipe"--a focused piece of code that web developers can insert directly into their applications. Yet, rather than just cut-and-paste code, you also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to your designs. The recipes range from simple tasks, such as manipulating strings and validating dates in JavaScript, to entire libraries that demonstrate complex tasks, such as cross-browser positioning of HTML elements and sorting tables. This book contains over 150 recipes on the following topics: Working with interactive forms and style sheets Presenting user-friendly page navigation Creating dynamic content Producing visual effects for stationary content Positioning HTML elements Managing browser windows and multiple frames This book is the ideal companion to O'Reilly's "JavaScript: The Definitive Guide and "Dynamic HTML: The Definitive Reference. If you own either of these books, the "JavaScript & DHTML Cookbook is a must.Short Description
After reading thousands of forum threads over the years, author and scripting pioneer Goodman has compiled a list of problems that frequently vex scripters of various experience levels. He has now applied state-of-the-art ECMA and W3C DOM standards and used best practices to create this extensive collection of practical recipes that can bring Web pages to life.
On numerous online forums for JavaScriptTM and DHTML, the majority of questions begin with "How do I...?" This new Cookbook provides the answers with a comprehensive collection of problems, solutions, and practical examples. The book's recipes range from simple tasks, such as manipulating strings and validating dates in JavaScript, to entire libraries that demonstrate complex tasks, such as cross-browser positioning of HTML elements and sorting tables.
Prefacep. xi
Stringsp. 1
Concatenating (Joining) Stringsp. 4
Accessing Substringsp. 6
Changing String Casep. 7
Testing Equality of Two Stringsp. 8
Testing String Containment Without Regular Expressionsp. 10
Testing String Containment with Regular Expressionsp. 11
Searching and Replacing Substringsp. 13
Using Special and Escaped Charactersp. 14
Reading and Writing Strings for Cookiesp. 16
Converting Between Unicode Values and String Charactersp. 19
Encoding and Decoding URL Stringsp. 20
Encoding and Decoding Base64 Stringsp. 22
Numbers and Datesp. 26
Converting Between Numbers and Stringsp. 30
Testing a Number's Validityp. 32
Testing Numeric Equalityp. 33
Rounding Floating-Point Numbersp. 34
Formatting Numbers for Text Displayp. 35
Converting Between Decimal and Hexadecimal Numbersp. 38
Generating Pseudorandom Numbersp. 40
Calculating Trigonometric Functionsp. 41
Creating a Date Objectp. 41
Calculating a Previous or Future Datep. 43
Calculating the Number of Days Between Two Datesp. 44
Validating a Datep. 46
Arrays and Objectsp. 50
Creating a Simple Arrayp. 53
Creating a Multidimensional Arrayp. 54
Converting Between Arrays and Stringsp. 56
Doing Something with the Items in an Arrayp. 58
Sorting a Simple Arrayp. 60
Combining Arraysp. 61
Dividing Arraysp. 62
Creating a Custom Objectp. 64
Simulating a Hash Table for Fast Array Lookupp. 68
Doing Something with a Property of an Objectp. 70
Sorting an Array of Objectsp. 71
Customizing an Object's Prototypep. 72
Converting Arrays and Custom Objects to Stringsp. 77
Variables, Functions, and Flow Controlp. 80
Creating a JavaScript Variablep. 80
Creating a Named Functionp. 84
Nesting Named Functionsp. 87
Creating an Anonymous Functionp. 89
Delaying a Function Callp. 90
Branching Execution Based on Conditionsp. 92
Handling Script Errors Gracefullyp. 96
Improving Script Performancep. 98
Browser Feature Detectionp. 102
Detecting the Browser Brandp. 108
Detecting an Early Browser Versionp. 109
Detecting the Internet Explorer Versionp. 110
Detecting the Netscape Navigator Versionp. 111
Detecting the Client Operating Systemp. 113
Detecting Object Supportp. 114
Detecting Object Property and Method Supportp. 117
Detecting the Browser Written Languagep. 119
Detecting Cookie Availabilityp. 120
Defining Browser- or Feature-Specific Linksp. 121
Testing on Multiple Browser Versionsp. 123
Managing Browser Windowsp. 125
Setting the Main Window's Sizep. 127
Positioning the Main Windowp. 129
Maximizing the Main Windowp. 130
Creating a New Windowp. 132
Bringing a Window to the Frontp. 135
Communicating with a New Windowp. 136
Communicating Back to the Main Windowp. 139
Using Internet Explorer Modal/Modeless Windowsp. 140
Simulating a Cross-Browser Modal Dialog Windowp. 143
Simulating a Window with Layersp. 150
Managing Multiple Framesp. 166
Creating a Blank Frame in a New Framesetp. 171
Changing the Content of One Frame from Anotherp. 173
Changing the Content of Multiple Frames at Oncep. 174
Replacing a Frameset with a Single Pagep. 176
Avoiding Being "Framed" by Another Sitep. 176
Assuring a Page Loads in its Framesetp. 178
Reading a Frame's Dimensionsp. 180
Resizing Framesp. 182
Setting Frameset Specifications Dynamicallyp. 185
Dynamic Formsp. 188
Auto-Focusing the First Text Fieldp. 191
Performing Common Text Field Validationsp. 192
Preventing Form Submission upon Validation Failurep. 197
Auto-Focusing an Invalid Text Field Entryp. 200
Changing a Form's Actionp. 202
Blocking Submissions from the Enter Keyp. 203
Advancing Text Field Focus with the Enter Keyp. 204
Submitting a Form by an Enter Key Press in Any Text Boxp. 205
Disabling Form Controlsp. 207
Hiding and Showing Form Controlsp. 208
Allowing Only Numbers (or Letters) in a Text Boxp. 211
Auto-Tabbing for Fixed-Length Text Boxesp. 213
Changing select Element Contentp. 214
Copying Form Data Between Pagesp. 218
Managing Eventsp. 222
Equalizing the IE and W3C Event Modelsp. 227
Initiating a Process After the Page Loadsp. 229
Determining the Coordinates of a Click Eventp. 231
Preventing an Event from Performing Its Default Behaviorp. 235
Blocking Double Clicksp. 238
Determining Which Element Received an Eventp. 239
Determining Which Mouse Button Was Pressedp. 241
Reading Which Character Key Was Typedp. 243
Reading Which Noncharacter Key Was Pressedp. 245
Determining Which Modifier Keys Were Pressed During an Eventp. 248
Determining the Element the Cursor Rolled From/Top. 250
Synchronizing Sounds to Eventsp. 254
Page Navigation Techniquesp. 256
Loading a New Page or Anchorp. 259
Keeping a Page Out of the Browser Historyp. 261
Using a select Element for Navigationp. 262
Passing Data Between Pages Via Cookiesp. 264
Passing Data Between Pages Via Framesp. 266
Passing Data Between Pages Via URLsp. 268
Creating a Contextual (Right-Click) Menup. 271
Creating Drop-Down Navigation Menusp. 279
Providing Navigation Trail Menusp. 292
Creating Expandable Menusp. 296
Creating Collapsible XML Menusp. 307
Managing Style Sheetsp. 318
Assigning Style Sheet Rules to an Element Globallyp. 320
Assigning Style Sheet Rules to a Subgroup of Elementsp. 322
Assigning Style Sheet Rules to an Individual Elementp. 323
Importing External Style Sheetsp. 324
Importing Browser- or Operating System-Specific Style Sheetsp. 325
Changing Imported Style Sheets After Loadingp. 326
Enabling/Disabling Style Sheetsp. 328
Toggling Between Style Sheets for an Elementp. 329
Overriding a Style Sheet Rulep. 330
Turning Arbitrary Content into a Styled Elementp. 331
Creating Center-Aligned Body Elementsp. 332
Reading Effective Style Sheet Property Valuesp. 333
Forcing Version
6. Browsers into Standards-Compatibility Mode
p. 335
Visual Effects for Stationary Contentp. 337
Precaching Imagesp. 340
Swapping Images (Rollovers)p. 342
Changing Text Style Propertiesp. 345
Offering Body Text Size Choices to Usersp. 347
Creating Custom Link Stylesp. 351
Changing Page Background Colors and Imagesp. 353
Hiding and Showing Elementsp. 355
Adjusting Element Transparencyp. 357
Creating Transition Visual Effectsp. 358
Positioning HTML Elementsp. 363
Making an Element Positionable in the Document Spacep. 368
Connecting a Positioned Element to a Body Elementp. 369
Controlling Positioning Via a DHTML JavaScript Libraryp. 371
Deciding Between div and span Containersp. 377
Adjusting Positioned Element Stacking Order (z-order)p. 379
Centering an Element on Top of Another Elementp. 381
Centering an Element in a Window or Framep. 383
Determining the Location of a Nonpositioned Elementp. 386
Animating Straight-Line Element Pathsp. 387
Animating Circular Element Pathsp. 391
Creating a Draggable Elementp. 393
Scrolling div Contentp. 398
Creating a Custom Scrollbarp. 404
Creating Dynamic Contentp. 417
Writing Dynamic Content During Page Loadingp. 418
Creating New Page Content Dynamicallyp. 419
Including External HTML Contentp. 421
Embedding XML Datap. 424
Embedding Data as JavaScript Objectsp. 427
Transforming XML Data into HTML Tablesp. 429
Transforming JavaScript Objects into HTML Tablesp. 432
Converting an XML Node Tree to JavaScript Objectsp. 434
Creating a New Elementp. 436
Creating Text Content for a New Elementp. 438
Creating Mixed Element and Text Nodesp. 440
Inserting and Populating an iframe Elementp. 442
Getting a Reference to an HTML Element Objectp. 444
Replacing Portions of Body Contentp. 446
Removing Body Contentp. 447
Sorting Dynamic Tablesp. 449
Walking the Document Node Treep. 452
Capturing Document Contentp. 457
Dynamic Content Applicationsp. 459
Displaying a Random Aphorismp. 460
Converting a User Selection into an Arbitrary Elementp. 462
Automating the Search-and-Replace of Body Contentp. 464
Creating a Slide Showp. 467
Auto-Scrolling the Pagep. 475
Greeting Users with Their Time of Dayp. 476
Displaying the Number of Days Before Christmasp. 477
Displaying a Countdown Timerp. 479
Creating a Calendar Date Pickerp. 486
Displaying an Animated Progress Barp. 494
Keyboard Event Character Valuesp. 499
Keyboard Key Code Valuesp. 501
ECMAScript Reserved Keywordsp. 503
Indexp. 505
Table of Contents provided by Rittenhouse. All Rights Reserved.
null
Edition: 2003
Publisher: O'Reilly Media, Incorporated
Binding: Trade Paper
Pages: 540
Size: 7.00" wide x 12.50" long x 1.25" tall
Weight: 1.69 lbs.
Language: English

100% Money Back Guarantee: Wrong item? No problem! Our hassle-free returns policy has you covered. We'll also process your order within 24 hours. Learn more about our shipping policy.


About TextbooksRus.com

TextbooksRus.com is dedicated to providing customers with the lowest prices on textbooks, trade books and professional books. In addition to low prices, TextbooksRus.com offers a buyback system that is unparalleled by competitors.
© 2002-2010, TextbooksRus.com