11.06.2018 Views

jQuery Succinctly

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

The Story behind the <strong>Succinctly</strong> Series of Books ................................................................................... 9<br />

About the Author ....................................................................................................................................... 11<br />

Introduction ............................................................................................................................................... 12<br />

Preface ....................................................................................................................................................... 13<br />

<strong>jQuery</strong> semantics ................................................................................................................................... 13<br />

How the book is structured .................................................................................................................... 13<br />

More code, less words ........................................................................................................................... 13<br />

Why oh why did I use alert() for code examples? ............................................................................. 13<br />

Color coding ........................................................................................................................................... 14<br />

Completely grok <strong>jQuery</strong> text() before reading this book .................................................................... 14<br />

Code examples ...................................................................................................................................... 15<br />

Chapter 1 Core <strong>jQuery</strong> ............................................................................................................................. 16<br />

Base concept behind <strong>jQuery</strong> .................................................................................................................. 16<br />

The concept, behind the concept, behind <strong>jQuery</strong> .................................................................................. 16<br />

<strong>jQuery</strong> requires HTML to run in standards mode or almost-standards mode ....................................... 17<br />

Waiting on the DOM to be ready ........................................................................................................... 17<br />

Executing <strong>jQuery</strong> code when the browser window is completely loaded .............................................. 18<br />

Include all CSS files before including <strong>jQuery</strong> ......................................................................................... 19<br />

Using a hosted version of <strong>jQuery</strong> ........................................................................................................... 19<br />

Executing <strong>jQuery</strong> code when DOM is parsed without using ready() ................................................... 19<br />

Grokking <strong>jQuery</strong> chaining....................................................................................................................... 20<br />

Breaking the chain with destructive methods ........................................................................................ 21<br />

Using destructive <strong>jQuery</strong> methods and exiting destruction using end() ............................................... 22<br />

Aspects of the <strong>jQuery</strong> function ............................................................................................................... 23<br />

Grokking when the keyword this refers to DOM elements .................................................................. 23<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!