Free Sample
+ Collection

jQuery 1.3 with PHP

Kae Verens

For PHP developers, this intro to jQuery has it all. It will empower your applications with new responsive capabilities and custom-built plugins. You’ll be amazed at the difference a few lines of JavaScript can make.
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847196989
Paperback248 pages

About This Book

  • 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

Who This Book Is For

This book is for PHP application developers who want to improve their user interfaces through jQuery's capabilities and responsiveness. Whether you are familiar with jQuery or have only dabbled a little with JavaScript, this book will provide you with numerous practical examples of how to improve your application.

Table of Contents

Chapter 1: Introduction and Overview
Expected developer skills
Differences between PHP and JavaScript
What is jQuery?
Why jQuery?
How does jQuery fit in with PHP?
How to work with the examples
Projects that use PHP and jQuery
Chapter 2: Quick Tricks
Dynamic select boxes
Quick deletes
Contextual help
Inline editing
Chapter 3: Tabs and Accordions
Using a jQuery tab plugin
Using jQuery accordion plugins
Server-side management of accordions
Server-side management of tabs
Using special codes to define tabs
Loading accordion panels through Ajax
Loading tab panels through Ajax
Chapter 4: Forms and Form Validation
Using the jQuery validation plugin
Setting up jQuery validation from PHP
Remote validation
Large select boxes
Chapter 5: File Management
Choosing a directory
Creating, renaming, and deleting directories
Moving directories
File uploads
Renaming, deleting, and moving files
File downloads
Chapter 6: Calendars
Displaying the calendar
Creating an event
Loading events from the server
Moving and resizing events
Editing events
Deleting events
Walk-through of the calendar so far
Recurring events
Deleting recurring events
Chapter 7: Image Manipulation
Showing the list of images
Selecting an image
Preparing your PHP
Caching or saving the image
Chapter 8: Drag and Drop
Sorting simple lists
Sorting trees
Connecting lists
Chapter 9: Data Tables
Setting up DataTables
Getting data from the server
Caching your database queries
Pagination through Ajax
Sorting by column
Setting a delay on the filter
Chapter 10: Optimization
Optimizing the page load
Optimizing development and maintenance
Optimizing jQuery
JavaScript optimizations

What You Will Learn

  • Integrate jQuery into your PHP applications
  • Add tabs and accordions using the jQuery-UI project to make your pages easier to read
  • Validate forms locally and remotely
  • Enhance your existing form controls, optimize large select-boxes, build auto-suggest fields for your forms.
  • Manipulate images non-destructively
  • Manage your files and directories
  • Create your own jQuery plugins
  • Write a weekly calendar
  • Use a drag/drop mechanism to sort lists and create hierarchical menus
  • Paginate, order, and search large data sets

In Detail

To make PHP applications that respond quickly, avoid unnecessary page reloads, and provide great user interfaces, often requires complex JavaScript techniques and even then, if you get that far, they might not even work across different browsers! With jQuery, you can use one of the most popular JavaScript libraries, forget about cross-browser issues, and simplify the creation of very powerful and responsive interfaces – all with the minimum of code.
This is the first book in the market that will ease the server-side PHP coder into the client-side world of the popular jQuery JavaScript library.

This book will show you how to use jQuery to enhance your PHP applications, with many examples using jQuery's user interface library jQuery UI, and other examples using popular jQuery plugins. It will help you to add exciting user interface features to liven up your PHP applications without having to become a master of client-side JavaScript.

This book will teach you how to use jQuery to create some really stunning effects, but without you needing to have in-depth knowledge of how jQuery works. It provides you with everything you need to build practical user interfaces for everything from graphics manipulation to drag-and-drop to data searching, and much more. The book also provides practical demonstrations of PHP and jQuery and explains those examples, rather than starting from how JavaScript works and how it is different from PHP.

By the end of this book, you should be able to take any PHP application you have written, and transform it into a responsive, user-friendly interface, with capabilities you would not have dreamed of being able to achieve, all in just a few lines of JavaScript.


Read More