CARVIEW |
Any 5 Wordpress eBooks for
$49 | €39 | £31 | AUS$47
Offer expires on 30th September.
PHP jQuery Cookbook
Formats:

save 15%!
save 44%!

Also available on: |
![]() ![]() ![]() ![]() |
- Create rich and interactive web applications with PHP and jQuery
- Debug and execute jQuery code on a live site
- Design interactive forms and menus
- Another title in the Packt Cookbook range, which will help you get to grips with PHP as well as jQuery
Book Details
Language : EnglishPaperback : 332 pages [ 235mm x 191mm ]
Release Date : December 2010
ISBN : 1849512744
ISBN 13 : 9781849512749
Author(s) : Vijay Joshi
Topics and Technologies : All Books, AJAX, jQuery, Open Source, PHP
Table of Contents
PrefaceChapter 1: Handling Events with jQuery
Chapter 2: Combining PHP and jQuery
Chapter 3: Working with XML Documents
Chapter 4: Working with JSON
Chapter 5: Working with Forms
Chapter 6: Adding Visual Effects to Forms
Chapter 7: Creating Cool Navigation Menus
Chapter 8: Data Binding with PHP and jQuery
Chapter 9: Enhancing your Site with PHP and jQuery
Appendix: Firebug
Index
- Chapter 1: Handling Events with jQuery
- Introduction
- Executing functions when page has loaded
- Binding and unbinding elements
- Adding events to elements that will be created later
- Submitting a form with jQuery
- Checking for missing images
- Creating the select/unselect all checkboxes functionality
- Capturing mouse events
- Creating keyboard shortcuts
- Displaying user selected text
- Dragging elements on a page
- Chapter 2: Combining PHP and jQuery
- Introduction
- Fetching data from PHP using jQuery
- Creating a query string automatically for all form elements
- Detecting an AJAX request in PHP
- Sending data to PHP
- Aborting AJAX requests
- Creating an empty page and loading it in parts
- Handling errors in AJAX requests
- Preventing browser from caching AJAX requests
- Loading JavaScript on demand to reduce page load time
- Chapter 3: Working with XML Documents
- Introduction
- Loading XML from files and strings using SimpleXML
- Accessing elements and attributes using SimpleXML
- Searching elements using XPath
- Reading an XML using DOM extension
- Creating an XML using DOM extension
- Modifying an XML using DOM extension
- Parsing XML with jQuery
- Chapter 4: Working with JSON
- Introduction
- Creating JSON in PHP
- Reading JSON in PHP
- Catching JSON parsing errors
- Accessing data from a JSON in jQuery
- Chapter 5: Working with Forms
- Introduction
- Adding input fields dynamically in a form
- Searching for user-inputted string in a page
- Checking for empty fields using jQuery
- Validating numbers using jQuery
- Validating e-mail and website addresses using regular expressions
- Displaying errors as user types: Performing live validation
- Strengthening validation: validating again in PHP
- Creating a voting system
- Allowing HTML inside text areas and limiting HTML tags that can be used
- Chapter 6: Adding Visual Effects to Forms
- Introduction
- Creating a Tic-Tac-Toe game with effects
- Informing a user while an AJAX request is in progress
- Creating expandable and collapsible boxes (accordion)
- Fading an element after updating it
- Floating box on demand
- Updating items in a shopping cart
- Chapter 7: Creating Cool Navigation Menus
- Introduction
- Creating a basic drop-down menu
- Creating a menu that changes background on mouse-over
- Creating an accordion style menu
- Creating a floating menu
- Creating an interface for tabbed navigation
- Adding more tabs
- Creating a wizard using tabs
- Chapter 8: Data Binding with PHP and jQuery
- Introduction
- Fetching data from a database and displaying it in a table format
- Collecting data from a form and saving to a database
- Filling chained combo boxes that depend upon each other
- Checking username availability from database
- Paginating data for large record sets
- Adding auto-suggest functionality to a textbox
- Creating a tag cloud
- Chapter 9: Enhancing your Site with PHP and jQuery
- Introduction
- Sending cross-domain requests using server proxy
- Making cross-domain requests with jQuery
- Creating an endless scrolling page
- Creating a jQuery plugin
- Displaying RSS feeds with jQuery and PHP
- Appendix: Firebug
- Introduction
- Inspecting elements
- Editing HTML and CSS
- Debugging JavaScript
Vijay Joshi
Vijay is a programmer with over six years of experience on various platforms. He discovered his passion for open source four years back when he started playing with PHP on a hobby project. Vijay now is a professional web developer and prefers writing code ONLY in open source (but that does not always happen, unfortunately!). He switches hats as needed – he is full-time lead programmer at Philogy, independent consultant for few selected companies where he advises them on variety of internet-based initiatives and still remains an active blogger at https://vijayjoshi.org.
Outside of work, he enjoys reading, trekking, and sometimes gets obsessed with fitness. Currently Vijay lives in New Delhi with his brother and a close network of friends that he is proud of.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
What you will learn from this book
- Start from the basics and learn pro-level tricks by the end of the book
- Create interactive and dynamic hierarchical menus
- Apply eye-catching effects on form elements
- Integrate a database along with PHP and jQuery
- Use AJAX to enhance user experience and page interaction
- Learn how to work with JSON and XML for efficient data exchange
- Create tools and utilities for your web applications
- Master form validation on client side as well as server side
Special Offers

Annual subscription:
$220.00 per annum
Monthly subscription:
$21.99 per month
In Detail
As web technology evolves, the gap between desktop applications and web applications continues to vanish. And what better way to bridge that gap, for your own website, than using the best two open source technologies in the market: PHP and jQuery. The power-combo of these two is leading the way in revolutionizing the RIA world. Although they are easy to integrate, finding or figuring out how to do what you want to do is rather arduous.
The PHP jQuery Cookbook will be your handy guide with walkthroughs of common integration tasks and problems that will help you master the possibilities available using the PHP and jQuery combo. You will learn quick solutions to necessary tasks to integrate the power of two of the best known and most widely used web technologies of today – PHP on the server side and jQuery on the client side. Glide through the basics and move to advanced topics to create dynamic and interactive web applications with this book in hand.
This book covers a wide array of technical aspects of creating an interactive website. Apart from basics of PHP and jQuery, you will go through advanced topics like creating plugins, validating controls, and useful utilities that you will be able to use as stand-alone tools. AJAX, the key technique of browser-server communication is covered in detail. You will also learn to use JSON, which is becoming preferred as a mode of data interchange over XML, both in web applications and web services.
The book also covers database interaction, which is an important part of any dynamic web application. You will also gain expertise in debugging JavaScript with the help of useful tools that will save you hours of tedious manual debugging.
Most importantly, by using jQuery and PHP together, you will be able to develop applications that are compatible with all major browsers, with no need to write code targeted at specific browsers!
A package of comprehensive solutions to problems that may occur while building web applications with PHP and jQuery
Approach
Written in Packt's cookbook style, this book presents numerous practical examples that you can use directly in your applications. The book covers most of the essential issues you will face while developing your web applications and gives solutions to them. Recipes in the book are written in a manner that will rapidly take you from a beginner to expert level.
Who this book is for
If you want to use PHP and jQuery together to create web applications this book is for you. It provides a large number of examples in each chapter that will take you from a basic developer to a pro by giving step-by-step instructions for each task in developing web applications using PHP and jQUery. All you need are JavaScript basics and you are on your way to building power web applications, with this book in hand.
Alternative Books
Have a look at these alternative products. Remember that if you buy two eBooks, you get 50% off both.
-
New jQuery Book Released jQuery Tools UI Library will show you how to add useful functionality to your website, using the compact but powerful jQuery Tools library.Get inspiration for developing your own ideas with the book.
Learn More Download a free chapter - Quickly look up features of the jQuery library
- Step through each function, method, and selector expression in the jQuery library with an easy-to-follow approach
- Understand the anatomy of a jQuery script
- Write your own plug-ins using jQuery's powerful plug-in architecture
- Written by the creators of learningquery.com
- Check out the new Learning jQuery Third Edition here
-
- Create a completely functional and a professional looking CMS
- Add a modular architecture to your CMS and create template-driven web designs
- Use jQuery plugins to enhance the "feel" of your CMS
- A step-by-step explanatory tutorial to get your hands dirty in building your own CMS
-
- Utilize jQuery's plugin framework to create a wide range of useful jQuery plugins from scratch
- Understand development patterns and best practices and move up the ladder to master plugin development
- Discover the ins and outs of some of the most popular jQuery plugins in action
- A Beginner's Guide packed with examples and step-by-step instructions to quickly get your hands dirty in developing high quality jQuery plugins
-
New jQuery Book Released jQuery Tools UI Library will show you how to add useful functionality to your website, using the compact but powerful jQuery Tools library.Get inspiration for developing your own ideas with the book.
Learn More Download a free chapter - Organize your interfaces with reusable widgets: accordions, date pickers, dialogs, sliders, tabs, and more
- Enhance the interactivity of your pages by making elements drag-and-droppable, sortable, selectable, and resizable
- Packed with examples and clear explanations of how to easily design elegant and powerful front-end interfaces for your web applications
- Revised and targeted at jQuery UI 1.7
-
- Create both simple and complex animations using clear, step-by-step instructions, accompanied with screenshots
- Walk through jQuery’s built-in animation methods and see in detail how each one can be used
- Over 50 detailed examples of different types of web page animations
- Attractive pictures and screenshots that show animations in progress and how the examples should finally appear
- Contains examples featuring many new HTML5 elements and CSS3 styling
- Follow the examples in a step-by-step approach beginning with simple concepts and building up to more advanced implementations
-
- Specifically written for Drupal 7 development
- Write your own Drupal modules, themes, and libraries
- Discover the powerful new tools introduced in Drupal 7
- Learn the programming secrets of six experienced Drupal developers
- Get practical with this book's project-based format
-
- Learn about the design choices involved in the creation of advanced web oriented PHP systems
- Build an infrastructure for web applications that provides high functionality while avoiding pre-empting styling choices
- Implement solid mechanisms for common features such as menus, presentation services, user management, and more
- Written by a seasoned developer of CMS applications and other modern software
-
- Take control of the look and feel of your Drupal website
- Tips and tricks to get the most out of Drupal's theming system
- Learn how to customize existing themes and create unique themes from scratch
- Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible
-
- Combine client-side jQuery with your server-side PHP to make your applications more efficient and exciting for the client
- Learn about some of the most popular jQuery plugins and methods
- Create powerful and responsive user interfaces for your PHP applications
- Complete examples of PHP and jQuery with clear explanations
- No JavaScript expertise or jQuery experience required
-
- The ultimate AJAX tutorial for building modern Web 2.0 Applications
- Create faster, lighter, better web applications by using the AJAX technologies to their full potential
- Leverage the power of PHP and MySQL to create powerful back-end functionality and make it work in harmony with a responsive AJAX clientWrite better JavaScript code to enable powerful web features
- Understand the complete client-server mechanism by following complete, step-by-step case studies
![]() |
RSS Feed |
![]() |
Sign up to Packt's newsletter |
![]() |
Follow Packt at Twitter |
![]() |
Join our Facebook Group |
Customer service body text... insert content here.
Returns Centre body text... insert content here.
Packt Updates
To submit your images Click Here
We accept the following
Footer Copyright
This site requires cookies to be enabled in your browser. Packt Publishing 2012
Links to Packt information
Click here to view Packt's cookie policy. This explains the cookies on Packt's website, and why we use them. It also explains information on how to manage your cookies.
By closing this banner, you are consenting to our use of cookies on your device, unless you have disabled them in your browser.