Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title Page
Copyright
Dedication
About the Authors
About the Authors
Credits
Acknowledgments
Introduction
Whom This Book Is For
What This Book Covers
What You Need to Use This Book
Conventions
Source Code
Errata
p2p.wrox.com
Chapter 1: Introduction to JavaScript and the Web
Introduction to JavaScript
Where Do My Scripts Go?
Your First Simple JavaScript Programs
A Brief Look at Browsers and Compatibility Problems
Summary
Chapter 2: Data Types and Variables
Types of Data in JavaScript
Variables — Storing Data in Memory
Using Data — Calculations and Basic String Manipulation
Data Type Conversion
Arrays
Summary
Exercise Questions
Chapter 3: Decisions, Loops, and Functions
Decision Making — The if and switch Statements
Looping — The for and while Statements
Functions
Summary
Exercise Questions
Chapter 4: Common Mistakes, Debugging, and Error Handling
D’oh! I Can’t Believe I Just Did That: Some Common Mistakes
Error Handling
Debugging
Summary
Exercise Questions
Chapter 5: JavaScript — An Object-Based Language
Object-Based Programming
JavaScript’s Native Object Types
Creating New Types of Objects (Reference Types)
Summary
Exercise Questions
Chapter 6: Programming the Browser
Introduction to the Browser’s Objects
Responding to the User’s Actions with Events
Summary
Exercise Questions
Chapter 7: HTML Forms: Interacting with the User
HTML Forms
Other Form Object Properties and Methods
HTML Elements in Forms
Summary
Exercise Questions
Chapter 8: Windows and Frames
Frames and the window Object
Opening New Windows
Security
Summary
Exercise Questions
Chapter 9: String Manipulation
Additional String Methods
Regular Expressions
The String Object — split(), replace(), search(), and match() Methods
Using the RegExp Object’s Constructor
Summary
Exercise Questions
Chapter 10: Date, Time, and Timers
World Time
Timers in a Web Page
Summary
Exercise Questions
Chapter 11: Storing Information: Cookies
Baking Your First Cookie
Creating a Cookie
Getting a Cookie’s Value
Cookie Limitations
Cookie Security and IE6+
Summary
Exercise Questions
Chapter 12: Dynamic HTML and the W3C Document Object Model
The Web Standards
The Document Object Model
Manipulating the DOM
DOM and Events
Writing Cross-Browser DHTML
JavaScript and XML
Summary
Exercise Questions
Chapter 13: Using ActiveX and Plug-Ins with JavaScript
Checking for and Embedding Plug-ins (Non-IE Browsers)
Checking for and Embedding ActiveX Controls on Internet Explorer
Using Plug-ins and ActiveX Controls
Summary
Exercise Question
Chapter 14: Ajax
What Is Ajax?
Using the XMLHttpRequest Object
Creating a Simple Ajax Module
Validating Form Fields with Ajax
Things to Watch Out For
Summary
Exercise Questions
Chapter 15: JavaScript Frameworks
Picking a Framework to Work With
Getting Started
Digging Deeper Into jQuery
Diving into Prototype
Delving into MooTools
Summary
Exercise Questions
Appendix A: Answers to Exercises
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Appendix B: JavaScript Core Reference
Browser Reference
Reserved Words
JavaScript Operators
JavaScript Statements
Top-Level Properties and Functions
JavaScript and Jscript Core Objects
Appendix C: W3C DOM Reference
DOM Core Objects
HTML DOM Objects
DOM Event Model and Objects
Miscellaneous Events
Appendix D: Latin-1 Character Set
Index
Advertisement
← Prev
Back
Next →
← Prev
Back
Next →