PHP Ajax Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn how to develop and deploy iPhone web and native apps.
  • Optimize the performance of Ajax applications.
  • Build dynamic websites with faster response from the server using the asynchronous call feature of PHP Ajax.
  • Using Ajax allows quick and efficient access of data from the server, thus precluding a total web page refresh.
  • Leverage the power of PHP Ajax using practical recipes with example codes.

 

Book Details

Language : English
Paperback : 340 pages [ 235mm x 191mm ]
Release Date : December 2011
ISBN : 1849513082
ISBN 13 : 9781849513081
Author(s) : Milan Sedliak, R. Rajesh Jeba Anbiah , Roshan Bhattarai
Topics and Technologies : All Books, Web Development, AJAX, Cookbooks, Open Source, PHP

Table of Contents

Preface
Chapter 1: AJAX Libraries
Chapter 2: Basic Utilities
Chapter 3: Useful Tools Using jQuery
Chapter 4: Advanced Utilities
Chapter 5: Debugging and Troubleshooting
Chapter 6: Optimization
Chapter 7: Implementing Best Practices to Build Ajax Websites
Chapter 8: Ajax Mashups
Chapter 9: iPhone and Ajax
Index
  • Chapter 1: AJAX Libraries
    • Designing simple navigation using jQuery
    • Creating tab navigation
    • Designing components using Ext JS
    • Event handling in MochiKit
    • Building a tab navigation using Dojo
    • Building a chart application using YUI library
    • Loading dynamic content using jQuery slider
    • Creating an AJAX shopping cart using MooTools
    • Building an AJAX login form using prototype.js
    • Chapter 2: Basic Utilities
      • Validating a form using Ajax
      • Creating an autosuggest control
      • Making Form Wizards
      • Uploading a file using Ajax
      • Uploading multiple files using Ajax
      • Creating a five-star rating system
      • Building a PHP Ajax contact form with validation
      • Displaying a table in Ajax
      • Building Pagination using PHP and Ajax
      • Chapter 3: Useful Tools Using jQuery
        • Making tool tips using Ajax
        • Creating Autocomplete from a database
        • Building a tab navigation using jQuery
        • Rotating content
        • Creating an image slider
        • Creating pageless pagination
        • Loading images using Lightbox
        • Growing textarea using the jGrow plugin
        • HTML replacement of the select dropdown
        • Improving date selection with Datepicker
        • Drag-and-drop functionality
        • Ajax shopping cart
        • Sorting and filtering data
        • Adding visual effects and animations
        • Chapter 4: Advanced Utilities
          • Building an Ajax chat system using the Comet technique
          • Charting with JavaScript
          • Decoding CAPTCHA through canvas
          • Displaying data in a grid
          • Chapter 5: Debugging and Troubleshooting
            • Debugging with Firebug and FirePHP
            • Debugging with the IE developer toolbar
            • Avoiding the framework $ conflict
            • Using the anonymous function of JavaScript
            • Fixing memory leaks in JavaScript
            • Fixing memory leaks
            • Sequencing Ajax Requests
            • Cross Browser and Ajax
            • Beautifying JavaScript
            • Chapter 6: Optimization
              • Caching of objects
              • Getting optimization tips with YSlow
              • Speeding up JavaScript delivery through automatic compression and browser caching
              • Triggering JavaScript early/on DOM load
              • Lazy-loading of images
              • Optimizing Ajax applications automagically through Apache modules/Google mod_pagespeed
                • Chapter 8: Ajax Mashups
                  • Web services
                  • XML-RPC
                  • Creating and consuming web services using PHP
                  • Using Flickr API with Ajax
                  • Using Twitter API with Ajax
                  • Translating text using Google Ajax API
                  • Using Google Maps
                  • Searching a location within a Google Map
                  • Searching within XX km. radius of Google Maps with markers and Info window
                  • Finding a city/country using IP address
                  • Converting currencies using Ajax and PHP
                  • Chapter 9: iPhone and Ajax
                    • Building a touch version of a website (with jQTouch)
                    • Leveraging HTML5 features in iPhone Ajax
                    • Building native apps with PhoneGap
                    • Speeding up a PhoneGap project
                    • Building a currency conversion hybrid app

                    Milan Sedliak

                    Milan Sedliak is a JavaScript specialist, jQuery and Cross-browser compatibility is one of his key strengths. He likes challenging tasks and he does everything he can to be at his best in this area. He has experience with all kinds of websites and a lot of technologies (eight+ years). Portfolios, company presentations, e-commerce, complicated reporting systems for telecommunication devices, PHP websites with MySQL or MS SQL, ASP.NET 3, 5 and 4 (C#) with MS SQL, etc. He has a lot of experience in international environments and is currently employed by Skype as a software engineer specialized in front-end web technologies and cross-browser compatibility. In the past he has worked at Hewlett-Packard, Interoute and Intertec Media Group.

                    R. Rajesh Jeba Anbiah

                    R. Rajesh Jeba Anbiah is a very simple guy who first saw computers in 1998. He got addicted to programming and co-authored A to Z of C, a non-profit book on Turbo C/DOS programming, while pursuing Master of Computer Applications in The American College, Madurai. After graduation he joined Agriya http://www.agriya.com/, then a startup company, and coded in Perl, Visual Basic, Delphi and heavily on PHP. Currently he heads the projects division in Agriya, where he oversees challenging Web 2.0 sites development, web software products and labs initiatives. His goal at the workplace is to get big branding and coverage for his labs projects.

                    Roshan Bhattarai

                    Roshan Bhattarai holds a M. Sc. in IT degree and has previously worked in various IT companies in Nepal and India as a Web developer and Technical Lead. Currently, he co-owns and working as a CTO at Proshore. Roshan owns and authors at one of the popular web development related blog at http://roshanbh.com.np.
                    Sorry, we don't have any reviews for this title yet.

                    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.


                    Errata

                    - 1 submitted: last submission 08 Jul 2014

                    Errata Type: Support Query

                    The code bundle of the book has been updated and is available for downloads. Please use the new code bundle.

                     

                    Sample chapters

                    You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                    Frequently bought together

                    PHP Ajax Cookbook +    Alfresco 4 Enterprise Content Management Implementation =
                    50% Off
                    the second eBook
                    Price for both: €35.15

                    Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                    What you will learn from this book

                    • Understand Basic form validation and form handling tools
                    • Learn Debugging and troubleshooting techniques to make your site perform even quicker
                    • Integrate Web 2.0 APIs for Flickr, Picasa, Facebook and Twitter
                    • Build chat application using Comet technology
                    • Write optimized code using Ajax asynchronous calls to improve website responsiveness
                    • Implement best practices to build SEO-friendly websites
                    • Become a skilled iPhone app developer using Ajax

                     

                    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.

                    Code Download and Errata
                    Packt Anytime, Anywhere
                    Register Books
                    Print Upgrades
                    eBook Downloads
                    Video Support
                    Contact Us
                    Awards Voting Nominations Previous Winners
                    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                    Resources
                    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software