Log In
Or create an account -> 
Imperial Library
  • Home
  • About
  • News
  • Upload
  • Forum
  • Help
  • Login/SignUp

Index
Learning from jQuery Preface
Who This Book Is For Who This Book Isn’t For Conventions Used in This Book Using Code Examples Safari® Books Online How to Contact Us Acknowledgments
1. Event Handling
Listening for Events
Events in jQuery Events in JavaScript Events in Internet Explorer 8 Writing a Wrapper Function Adding Event Handlers to Multiple Elements
Event Propagation
Internet Explorer’s .attachEvent
Triggering Events
Triggering Events in Internet Explorer 8 Writing a Wrapper Function to Trigger Events
Removing Event Handlers
Removing Event Handlers in Internet Explorer 8 Writing a Wrapper Function to Remove Events
Adding a “Once Only” Event Listener Summary
2. Constructors and Prototypes
Constructors
Method Chaining Constructor, Not Function
Prototypes
.hasOwnProperty Editing the Prototype of Existing Objects
Summary
3. DOM Traversal and Manipulation
Selecting an Element
Selecting Elements with a CSS Selector
Selecting Children Selecting the Next Element Creating an Element Modifying an Existing Element Cycling Through Elements Moving and Copying Elements Summary
4. AJAX
Sending an AJAX Request Debugging
Debugging Sent AJAX Requests
Sending POST Requests in JavaScript Writing a Wrapper Function A Simple Application of AJAX Designing a Site with AJAX Summary
5. JavaScript Conventions
Writing JavaScript
Comments Coding Standards
Whitespace Curly braces Naming conventions
Literals Notation
Object Literals Other Literals
Optimizations
Algorithms Caching Variables parseInt Loops Minimize Repeated Expressions
Functions
Declarations Versus Expressions Function Callbacks If Invoking Self-Defining Functions
Code Reuse Common Antipatterns
Using eval with document.write
Common Design Patterns
The Singleton Pattern The Factory Pattern The Iterator Pattern The Facade Pattern
Summary
A. JavaScript Basics
Hello World! Comments Variables Numbers
The Assignment Operators
Functions
Hoisting Example Functions as Arguments Returning a Value
Objects Finding the Type of a Variable Arrays
Detecting an Array
Looping
The for Loop The while Loop The do-while Loop The break and continue Statements for..in statements
Conditional Statements
The if Statement Comparison Operators Logical Operators
Falsy values
The switch Statement
Delays Regular Expressions
Regular Expressions in String Functions
Error Handling Summary
B. JavaScript Resources
A Good IDE GitHub JSHint JSPerf Mozilla Developer Network Pastebins
Gist JSFiddle
Version Control Software
About the Author Colophon Copyright
  • ← Prev
  • Back
  • Next →
  • ← Prev
  • Back
  • Next →

Chief Librarian: Las Zenow <zenow@riseup.net>
Fork the source code from gitlab
.

This is a mirror of the Tor onion service:
http://kx5thpx2olielkihfyo4jgjqfb7zx7wxr3sd4xzt26ochei4m6f7tayd.onion