Learning from jQuery - Helion
ISBN: 978-14-493-3515-1
stron: 116, Format: ebook
Data wydania: 2013-01-30
Księgarnia: Helion
Cena książki: 55,24 zł (poprzednio: 64,99 zł)
Oszczędzasz: 15% (-9,75 zł)
If you’re comfortable with jQuery but a bit shaky with JavaScript, this concise guide will help you expand your knowledge of the language—especially the code that jQuery covers up for you. Many jQuery devotees write as little code as possible, but with some JavaScript under your belt, you can prevent errors, reduce overhead, and make your application code more efficient.
This book explores event handling, prototypes, and working with the DOM and AJAX through examples and lots of code. You’ll learn common conventions and patterns in JavaScript and—if you’ve never coded with JavaScript before—a tutorial will take you through the basics.
- Enhance your jQuery code by using object constructors and prototypes
- Reduce overhead and gain more control by handling events with JavaScript
- Work with the DOM much faster with JavaScript than you can with jQuery
- Send a few AJAX requests without having to load the entire jQuery library
- Understand the importance of JavaScript code standards, comments, code reuse, and anti-patterns
- Enlist JavaScript resources, such as a good IDE, a syntax checker, and version control
Osoby które kupowały "Learning from jQuery", wybierały także:
- ASP.NET MVC. Kompletny przewodnik dla programistów interaktywnych aplikacji internetowych w Visual Studio 86,77 zł, (26,90 zł -69%)
- jQuery, jQuery UI oraz jQuery Mobile. Receptury 57,74 zł, (17,90 zł -69%)
- PHP i jQuery. Techniki zaawansowane. Wydanie II 65,31 zł, (20,90 zł -68%)
- jQuery. Kurs video. Poziom drugi. Interaktywne banery i funkcjonalne menu 59,00 zł, (26,55 zł -55%)
- Vue.js w akcji 58,98 zł, (29,49 zł -50%)
Spis treści
Learning from jQuery. Building on Core Skills eBook -- spis treści
- Learning from jQuery
- Preface
- Who This Book Is For
- Who This Book Isnt 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 Explorers .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
- Listening for Events
- 2. Constructors and Prototypes
- Constructors
- Method Chaining
- Constructor, Not Function
- Prototypes
- .hasOwnProperty
- Editing the Prototype of Existing Objects
- Summary
- Constructors
- 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
- Selecting an Element
- 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
- Writing JavaScript
- 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