Edition |
1st ed. |
Physical description |
1 online resource (xvii, 520 pages) : illustrations |
Notes |
"Solutions & examples for web programmers"--Cover |
|
Includes index. |
Contents |
Table of Contents; Preface; About You; About the Recipes; What's in This Book; Browser Platforms; Conventions Used in This Book; Request for Comments; Acknowledgments; Strings; 1.0 Introduction; Creating a String; Regular Expressions; 1.1 Concatenating (Joining) Strings; Problem; Solution; Discussion; See Also; 1.2 Accessing Substrings; Problem; Solution; Discussion; See Also; 1.3 Changing String Case; Problem; Solution; Discussion; See Also; 1.4 Testing Equality of Two Strings; Problem; Solution; Discussion; See Also; 1.5 Testing String Containment Without Regular Expressions; Problem |
|
SolutionDiscussion; See Also; 1.6 Testing String Containment with RegularExpressions; Problem; Solution; Discussion; See Also; 1.7 Searching and Replacing Substrings; Problem; Solution; Discussion; See Also; 1.8 Using Special and Escaped Characters; Problem; Solution; Discussion; See Also; 1.9 Reading and Writing Strings for Cookies; Problem; Solution; Discussion; See Also; 1.10 Converting Between Unicode Values and String Characters; Problem; Solution; Discussion; See Also; 1.11 Encoding and Decoding URL Strings; Problem; Solution; Discussion; See Also |
|
1.12 Encoding and Decoding Base64 StringsProblem; Solution; Discussion; See Also; Numbers and Dates; 2.0 Introduction; JavaScript Numbers; The Math Object; Dates and Times; 2.1 Converting Between Numbers and Strings; Problem; Solution; Discussion; See Also; 2.2 Testing a Number's Validity; Problem; Solution; Discussion; See Also; 2.3 Testing Numeric Equality; Problem; Solution; Discussion; See Also; 2.4 Rounding Floating-Point Numbers; Problem; Solution; Discussion; See Also; 2.5 Formatting Numbers for Text Display; Problem; Solution; Discussion; See Also |
|
2.6 Converting Between Decimal and Hexadecimal NumbersProblem; Solution; Discussion; See Also; 2.7 Generating Pseudorandom Numbers; Problem; Solution; Discussion; See Also; 2.8 Calculating Trigonometric Functions; Problem; Solution; Discussion; See Also; 2.9 Creating a Date Object; Problem; Solution; Discussion; See Also; 2.10 Calculating a Previous or Future Date; Problem; Solution; Discussion; See Also; 2.11 Calculating the Number of Days Between Two Dates; Problem; Solution; Discussion; See Also; 2.12 Validating a Date; Problem; Solution; Discussion; See Also; Arrays and Objects |
|
3.0 IntroductionJavaScript Arrays; JavaScript Custom Objects; Choosing Between Arrays and Objects; Getting Data into the Page; 3.1 Creating a Simple Array; Problem; Solution; Discussion; See Also; 3.2 Creating a Multidimensional Array; Problem; Solution; Discussion; See Also; 3.3 Converting Between Arrays and Strings; Problem; Solution; Discussion; See Also; 3.4 Doing Something with the Items inanArray; Problem; Solution; Discussion; See Also; 3.5 Sorting a Simple Array; Problem; Solution; Discussion; See Also; 3.6 Combining Arrays; Problem; Solution; Discussion; See Also; 3.7 Dividing Arrays |
Summary |
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 framesThis 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 |
NOTES |
Copyright © O'Reilly Media, Inc. 2003. |
Language notes |
English. |
Subject |
JavaScript (Computer program language)
|
|
DHTML (Document markup language)
|
|
Internet programming.
|
Variant Title |
JavaScript and Dynamic HyperText Markup Language cookbook |
ISBN |
9780596517120 (e-book) |
|
0596517122 (e-book) |
|
9780596552114 |
|
0596552114 |
|
0596004672 |
|
9780596004675 |
Standard Number |
0596004672 |
|