PHP Ajax Cookbook
eBook - ePub

PHP Ajax Cookbook

Milan Sedliak, R. Rajesh Jeba Anbiah, Roshan Bhattarai

Share book
  1. 340 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

PHP Ajax Cookbook

Milan Sedliak, R. Rajesh Jeba Anbiah, Roshan Bhattarai

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Ajax is the necessary paradigm in Web 2.0 sites. Most of the Web 2.0 sites are built with PHP and Ajax. Extending AJAX is about delivering front-end service for accessing back-end services in PHP in a quick and easy manner. With this book in hand, you will learn how to use the necessary tools for Ajaxification of websites and iPhones.

PHP AJAX cookbook will teach you how to use the combination of PHP AJAX as a powerful platform for websites or web applications. Using AJAX for Communication with Server leads to faster response with PHP at the back-end services. The combination of AJAX PHP has many features such as speeding up the user experience, giving your web client much quicker response time and letting the client browser retrieve data from the server without having to refresh the whole page. You will learn the nuances of optimization and debugging Ajax applications. Further, you will learn how to program Ajax on iPhone devices.

This book will teach you popular selector-based JavaScript followed by important concepts on debugging, optimization and best practices. There is a collection of recipes focused on creating basic utilities such as validating form using Ajax and creating a five star rating system. As jQuery is quite popular, useful tools and jQuery plugins like Ajax tooltips, tab navigation, autocomplete, shopping cart, and Ajax chat are covered subsequently. By the end of chapter 7 you will learn to visually speed up website responsiveness to building SEO-friendly Ajax websites. Also get to know about all popular Ajax webservices and APIs like Twitter, Facebook and Google Maps which are covered in Ajax Mashups. Finally, step-by-step recipes are presented to build iPhone apps using basic libraries and everyday useful Ajax tools.

Build rich interactive web 2.0 sites with rich standards and Mashups around PHP Ajax.

Approach

This book contains a collection of recipes with step-by-step directions to build SEO-friendly websites using standard Ajax tools. Each recipe contains behind-the-scene explanations to PHP Ajax questions.

Who this book is for

This book is an ideal resource for people who like to add Ajax features to websites and who prefer standards and best practices for building SEO-friendly websites. As the book covers advanced topics, readers need to be aware of basic PHP, JavaScript and XML features.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is PHP Ajax Cookbook an online PDF/ePUB?
Yes, you can access PHP Ajax Cookbook by Milan Sedliak, R. Rajesh Jeba Anbiah, Roshan Bhattarai in PDF and/or ePUB format, as well as other popular books in Informatica & Sviluppo di applicazioni. We have over one million books available in our catalogue for you to explore.

Information

Year
2011
ISBN
9781849513081

PHP Ajax Cookbook


Table of Contents

PHP Ajax Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. AJAX Libraries
Designing simple navigation using jQuery
Getting ready
How to do it...
How it works...
There's more...
See also
Creating tab navigation
Getting ready
How to do it...
How it works...
There's more...
See also
Designing components using Ext JS
Getting ready
How to do it...
How it works...
There's more...
Event handling in MochiKit
Getting ready
How to do it...
How it works...
There's more...
Building a tab navigation using Dojo
Getting ready
How to do it...
How it works...
Building a chart application using YUI library
Getting ready
How to do it...
How it works...
There's more...
Loading dynamic content using jQuery slider
Getting ready
How to do it...
How it works...
There's more...
See also
Creating an AJAX shopping cart using MooTools
Getting ready
How to do it...
How it works...
There's more...
Building an AJAX login form using prototype.js
Getting ready
How to do it...
How it works...
There's more...
2. Basic Utilities
Validating a form using Ajax
Getting ready
How to do it...
How it works...
There's more...
See also
Creating an autosuggest control
Getting ready
How to do it...
How it works...
There's more...
Making Form Wizards
Getting ready
How to do it...
How it works...
There's more...
Uploading a file using Ajax
Getting ready
How to do it...
How it works...
There's more...
Uploading multiple files using Ajax
Getting ready
How to do it...
How it works...
There's more...
Creating a five-star rating system
Getting ready
How to do it...
How it works...
There's more...
Building a PHP Ajax contact form with validation
How to do it...
How it works...
There's more...
Displaying a table in Ajax
Getting ready
How to do it...
How it works...
There's more...
Building Pagination using PHP and Ajax
How to do it...
How it works...
There's more...
3. Useful Tools Using jQuery
Making tool tips using Ajax
Getting ready
How to do it...
How it works...
There's more...
Creating Autocomplete from a database
Getting ready
How to do it...
How it works...
There's more...
Building a tab navigation using jQuery
Getting ready
How to do it...
How it works...
There's more...
See also
Rotating content
Getting ready
How to do it...
How it works...
There's more...
Creating an image slider
Getting ready
How to do it...
How it works...
There's more...
Creating pageless pagination
Getting ready
How to do it...
How it works...
There's more...
Loading images using Lightbox
Getting ready
How to do it...
How it works...
There's more...
Growing textarea using the jGrow plugin
Getting ready
How to do it...
How it works...
There's more...
HTML replacement of the select dropdown
Getting ready
How to do it...
How it works...
There's more...
Improving date selection with Datepicker
Getting ready
How to do it...
How it works...
There's more...
Drag-and-drop functionality
Getting ready
How to do it...
How it works...
There's more...
Ajax shopping cart
Getting ready
How to do it...
How it works...
There's more...
Sorting and filtering data
Getting ready
How to do it...
How it works...
There's more...
Adding visual effects and animations
Getting ready
How to do it...
How it works...
There's more...
4. Advanced Utilities
Building an Ajax chat system using the Comet technique
Getting ready
How to do it...
How it works...
Charting with JavaScript
Getting ready
How it works...
Drawing a line chart
Drawing a bar chart
Drawing a 3D pie chart
Decoding CAPTCHA through canvas
Getting ready
How to do it...
How it works...
There's more...
Displaying data in a grid
Getting ready
How to do it...
How it works...
There's more...
Other data grid plugins
Displaying millions of data items
5. Debugging and Troubleshooting
Debugging with Firebug and FirePHP
Debugging with Firebug
How to do it...
How it works...
There's more...
Debugging with FirePHP
Getting ready
How it works...
There's more...
Debugging with the IE developer toolbar
Getting ready
How to do it...
Avoiding the framework $ conflict
Getting ready
How to do it...
How it works...
Using the anonymous function of JavaScript
How to do it...
How it works...
There's more...
Fixing memory leaks in JavaScript
What is a memory leak?
What might cause a memory leak?
Fixing memory leaks
How to do it...
How it works...
There's more...
Sequencing Ajax Requests
How to do it ...
How it works...
Cross Browser and Ajax
Beautifying JavaScript
6. Optimization
Caching of objects
Getting ready
How to do it...
How it works...
Getting optimization tips with YSlow
Getting ready
How to do it...
How it works...
There's more...
Speeding up JavaScript delivery through automatic compression and browser caching
Getting ready
How to do it...
How it works...
There's more...
Comparing JavaScript minification tools
Automatic speed up tools
Triggering JavaScript early/on DOM load
Getting ready
How to do it...
How it works...
DOMContentLoaded and workarounds
There's more...
Lazy-loading of images
Getting ready
How to do it...
Pure JavaScript approach
Mangled HTML markup
How it works...
There's more...
Lazy-loading plugins
Lazy/deferred script loading
Optimizing Ajax applications automagically through Apache modules/Google mod_pagespeed
Getting ready
How to do it...
How it works...
There's more...
Testing HTTP headers
Testing mod_pagespeed without installing
Page Speed Service
7. Implementing Best Practices to Build Ajax Websites
Avoiding HTML markup-specific coding
Getting ready
How to do...

Table of contents