11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

www.it-ebooks.infoCHAPTER 22 • CREATING AJAX-ENHANCED FEATURES WITH JQUERY AND <strong>PHP</strong>Figure 22-1. A typical Ajax workflowIntroducing jQueryIn my opinion, jQuery is the “fixed” version of JavaScript, correcting much of the ugly and tedious syntaxwhich has been the bane of web developers for so many years. A JavaScript library created by JavaScriptguru John Resig (http://ejohn.org), jQuery has grown to be so popular that it plays a role in powering31% of the world’s 10,000 most visited websites, 2 among them Google, Mozilla.org, and NBC.com. It’s nowonder, given the library’s deep integration with the DOM, convenient Ajax helper methods, impressiveuser interface effects, and pluggable architecture.How’s that for a sales pitch? jQuery really is the cat’s meow, and in this section I’ll introduce you tothe key features which make it an ideal candidate for not only incorporating Ajax features into yourwebsite, but also for carrying out just about every other JavaScript-oriented task. Like the JavaScriptlanguage, jQuery is such a vast topic that it warrants an entire book unto itself, so be sure to spend sometime surfing the jQuery website at www.jquery.com to learn more about this powerful library.Installing jQueryjQuery is an open source project, downloadable for free from www.jquery.com. Packaged into a singleself-contained file, you incorporate it into your website like any other JavaScript file, placing it within a2 http://en.wikipedia.org/wiki/JQuery439

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

Saved successfully!

Ooh no, something went wrong!