Head First jQuery
Ryan Benedetti
Ronan Cranley
Beijing Cambridge Farnham Kln Sebastopol Tokyo
We dedicate this book to the JavaScript Jedi Masters: John Resig (creator and lead developer of the jQuery library), Douglas Crockford, David Flanagan, and Brandon Eich.
To my three miracles: Josie, Vin, and Shonna.
Ryan
To Caitlin and Bono: Thank you for everything!
Ronan
Special Upgrade Offer
If you purchased this ebook directly from oreilly.com, you have the following benefits:
DRM-free ebooksuse your ebooks across devices without restrictions or limitations
Multiple formatsuse on your laptop, tablet, or phone
Lifetime access, with free updates
Dropbox syncingyour files, anywhere
If you purchased this ebook from another retailer, you can upgrade your ebook to take advantage of all these benefits for just $4.99. to access your ebook upgrade.
Please note that upgrade offers are not available from sample content.
A Note Regarding Supplemental Files
Supplemental files and examples for this book can be found at http://examples.oreilly.com/0636920012740/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.
All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .
Advance Praise for Head First jQuery
jQuery makes doing amazing things with JavaScript so easy it feels like cheating. This book demonstrates how to solve real-world problems quickly. As a bonus, youll learn key aspects of JavaScript, how to set up a web development environment, and some PHP/MySQL. This is a solid book.
Jim Doran, software engineer at Johns Hopkins University
Unlike those abstruse programming books filled with technical jargon, Head First jQuery guides beginners through the steps to create their first jQuery pages in a fun and understandable way.
Lindsey Skouras, attorney and self-taught programmer
Ryan Benedetti and Ronan Cranley have taken a potentially intimidating stew of technologies (jQuery, DOM, Ajax, HTML5, CSS) and broken them down into approachable concepts that actually make learning the material fun.
Bill Mietelski, software engineer
JavaScript has reemerged as a programming language of some merit due in no small part to a collection of best-of-breed add-on libraries, of which jQuery is a key player. Head First jQuery provides the modern web developer with a focused heads-up and hands-on treatment to this key JavaScript technology.
Paul Barry, author and lecturer on computing at the Institute of Technology, Carlow
Praise for other Head First books
Head First Object-Oriented Analysis and Design is a refreshing look at subject of OOAD. What sets this book apart is its focus on learning. The authors have made the content of OOAD accessible, usable for the practitioner.
Ivar Jacobson, Ivar Jacobson Consulting
I just finished reading HF OOA&D and I loved it! The thing I liked most about this book was its focus on why we do OOA&Dto write great software!
Kyle Brown, Distinguished Engineer, IBM
Hidden behind the funny pictures and crazy fonts is a serious, intelligent, extremely well-crafted presentation of OO Analysis and Design. As I read the book, I felt like I was looking over the shoulder of an expert designer who was explaining to me what issues were important at each step, and why.
Edward Sciore, Associate Professor, Computer Science Department, Boston College
All in all, Head First Software Development is a great resource for anyone wanting to formalize their programming skills in a way that constantly engages the reader on many different levels.
Andy Hudson, Linux Format
If youre a new software developer, Head First Software Development will get you started off on the right foot. And if youre an experienced (read: long-time) developer, dont be so quick to dismiss this....
Thomas Duff, Duffberts Random Musings
Theres something in Head First Java for everyone. Visual learners, kinesthetic learners, everyone can learn from this book. Visual aids make things easier to remember, and the book is written in a very accessible stylevery different from most Java manuals.... Head First Java is a valuable book. I can see the Head First books used in the classroom, whether in high schools or adult ed classes. And I will definitely be referring back to this book, and referring others to it as well.
Warren Kelly, Blogcritics.org, March 2006
Rather than textbook-style learning, Head First iPhone and iPad Development brings a humorous, engaging, and even enjoyable approach to learning iOS development. With coverage of key technologies, including core data, and even crucial aspects such as interface design, the content is aptly chosen and top-notch. Where else could you witness a fireside chat between a UIWebView and UITextField!
Sean Murphy, iOS designer and developer
Another nice thing about Head First Java, Second Edition, is that it whets the appetite for more. With later coverage of more advanced topics such as Swing and RMI, you just cant wait to dive into those APIs and code that flawless, 100,000-line program on Java.net that will bring you fame and venture-capital fortune. Theres also a great deal of material, and even some best practices, on networking and threadsmy own weak spot. In this case, I couldnt help but crack up a little when the authors use a 1950s telephone operatoryeah, you got it, that lady with a beehive hairdo that manually hooks in patch linesas an analogy for TCP/IP ports...you really should go to the bookstore and thumb through Head First Java, Second Edition . Even if you already know Java, you may pick up a thing or two. And if not, just thumbing through the pages is a great deal of fun.
Robert Eckstein, Java.sun.com
Of course its not the range of material that makes Head First Java stand out, its the style and approach. This book is about as far removed from a computer science textbook or technical manual as you can get [with its] use of cartoons, quizzes, fridge magnets (yep, fridge magnets...). And, in place of the usual kind of reader exercises, you are asked to pretend to be the compiler and compile the code, or perhaps to piece some code together by filling in the blanks or...you get the picture.... The first edition of this book was one of our recommended titles for those new to Java and objects. This new edition doesnt disappoint and rightfully steps into the shoes of its predecessor. If you are one of those people who falls asleep with a traditional computer book, then this one is likely to keep you awake and learning.
TechBookReport.com
Head First Web Design is your ticket to mastering all of these complex topics, and understanding whats really going on in the world of web design.... If you have not been baptized by fire in using something as involved as Dreamweaver, then this book will be a great way to learn good web design.