02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents<br />

■About the Author ...................................................................................................xii<br />

■About the Technical Reviewer..............................................................................xiii<br />

■Acknowledgements .............................................................................................. xiv<br />

■PART 1: Getting Comfortable with <strong>jQuery</strong>................................................................1<br />

■Chapter 1: Introducing <strong>jQuery</strong> .................................................................................3<br />

Choosing <strong>jQuery</strong> over JavaScript.......................................................................................3<br />

Underst<strong>and</strong>ing JavaScript Libraries ......................................................................................................... 3<br />

Underst<strong>and</strong>ing the Benefits of <strong>jQuery</strong>....................................................................................................... 4<br />

Underst<strong>and</strong>ing the History of <strong>jQuery</strong>......................................................................................................... 4<br />

Setting Up a Testing Environment .....................................................................................4<br />

Installing Firefox....................................................................................................................................... 5<br />

Installing Firebug...................................................................................................................................... 5<br />

Including <strong>jQuery</strong> in Web Pages ..........................................................................................7<br />

Including a Downloaded Copy of the <strong>jQuery</strong> Library................................................................................. 7<br />

Including a Remotely Hosted Copy of the <strong>jQuery</strong> Library ......................................................................... 8<br />

Using the Google AJAX Libraries API ........................................................................................................ 8<br />

Setting up a Test File.........................................................................................................8<br />

Introducing the <strong>jQuery</strong> Function ($) .......................................................................................................... 9<br />

Selecting DOM Elements Using CSS Syntax........................................................................................... 10<br />

Summary .........................................................................................................................23<br />

■Chapter 2: Common <strong>jQuery</strong> Actions <strong>and</strong> Methods .................................................25<br />

Underst<strong>and</strong>ing the Basic Behavior of <strong>jQuery</strong> Scripts .......................................................25<br />

v

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

Saved successfully!

Ooh no, something went wrong!