Rights Contact Login For More Details
- Wiley
More About This Title JavaScript 24-Hour Trainer
- English
English
A new generation of web browsers has emerged that are specifically optimized for the capabilities of JavaScript. This unique book-and-DVD package shows you how to use JavaScript to make web pages more dynamic and interactive so that you can create a first-rate user experience. Packed with expertly written lessons, this must-have book-and-DVD set provides instructional demonstrations on the DVD that enhance your Java Script learningexperience through tutorial demos and helpful examples. Assuming little or no previous programming experience, the self-paced lessons guide you through the fundamentals of programming with the JavaScript language and gradually build upon the basics.
JavaScript 24-Hour Trainer:
Reviews JavaScript variables, types of data, functions, and control structures
Addresses how to avoid common mistakes, debug code, and use best programming practices
Explains how to manipulate HTML with JavaScript
Walks you through modifying element style
Details how to handle events with a cross-browser event utility object
Highlights conventions and best practices aimed at helping you write more efficient code
Explains how to send and receive data with Ajax and JSON
Wrox guides are crafted to make learning programming languages and technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved.
On the DVD
Don't just learn?do!
The lessons within the book are each accompanied by an instructional demonstration on the DVD?over 4 hours of video tutorials!
You'll learn to:
Add JavaScript to a web page
Create JavaScript animations
Execute code based on conditions
Repeat code with loops
Use object oriented programming with JavaScript
Access and alter styles
Dynamically create new HTML elements
Navigate the document object model
Enable drag and drop in the browser
Handle errors and debug with Firebug
Note: As part of the print version of this title, video lessons are included on DVD. For e-book versions, video lessons can be accessed at wrox.com using a link provided in the interior of the e-book.
- English
English
Jeremy McPeak is a professional programmer and analyst?who works extensively with JavaScript and C#. He contributed to Professional Ajax and Beginning JavaScript.
- English
English
Preface xix
Part I: Introduction to JavaScript
Lesson 1: Adding JavaScript to a Web Page 3
Lesson 2: Variables and JavaScript Syntax 9
Lesson 3: Functions 25
Lesson 4: Making Decisions 35
Lesson 5: Loops 49
Lesson 6: Scope 57
Lesson 7: Objects and Built-In Types 65
Lesson 8: Custom Objects 83
Lesson 9: Prototypes and Inheritance (The Function Object) 91
Part II: Programming the Browser
Lesson 10: The window Object 101
Lesson 11: Scripting Windows 109
Lesson 12: Scripting Frames 121
Lesson 13: The Document Object Model 129
Lesson 14: Adding HT ML with JavaScript 137
Lesson 15: Modifying Element Style 147
Lesson 16: Introduction to Events 155
Lesson 17: Assigning Event Handlers with HT ML Attributes 161
Lesson 18: Using Early DO M Event Handlers 173
Lesson 19: Using Standard DO M and IE Event Handlers 185
Lesson 20: Writing Cross-Browser Event Handlers 195
Lesson 21: The Standard Event Object 205
Lesson 22: Internet Explorer’s Event Object 217
Lesson 23: Writing Cross-Browser Event Code 225
Lesson 24: Dragging and Dropping 235
Lesson 25: Tim ers and Anim ating Elements 249
Lesson 26: Forms — A Primer 261
Lesson 27: Scripting Buttons 267
Lesson 28: Scripting Text Elements 273
Lesson 29: Scripting Selection Boxes 283
Lesson 30: Scripting Checkboxes and Radio Buttons 295
Lesson 31: An Introduction to Aj ax 305
Lesson 33: Making Ajax Requests Using GET 321
Lesson 34: Making Aj ax Requests Using POST 329
Lesson 35: JSON 339
Part III: Handling Errors, Debugging, and Best Practices
Lesson 36: Common Coding Mistakes 353
Lesson 37: Handling Errors 357
Lesson 38: Debugging With Firebug 367
Lesson 39: Coding Guidelines 377
Lesson 40: Separating JavaScript and HT ML 381
Lesson 41: Separating JavaScript and CSS 387
Lesson 42: Avoiding Global Scope 389
Lesson 43: Optimizing Your Code 399
Appendix: What’s on the DVD ? 413
Index 417