PHP and script.aculo.us Web 2.0 Application Interfaces


PHP and script.aculo.us Web 2.0 Application Interfaces
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
$15.74
save 25%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
$34.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Get started quickly with script.aculo.us library with as little as one line of code
  • Explore Prototype library features, tutorials, code, and examples
  • Learn script.aculo.us' In-place Editing, Auto Completion, Sliders, Drag-and-Drop, Effects, and Multimedia
  • A book with less jargon, and more code explanation for building real-world examples —Tadalist clone, Digg and Delicious clones, 43things.com clone

Book Details

Language : English
Paperback : 264 pages [ 235mm x 191mm ]
Release Date : May 2009
ISBN : 1847194044
ISBN 13 : 9781847194046
Author(s) : Sridhar Rao
Topics and Technologies : All Books, Web Development, AJAX, Open Source, Web Development


Table of Contents

Preface
Chapter 1: About script.aculo.us
Chapter 2: Exploring Client-side Techniques with Prototype
Chapter 3: Server-side Techniques with PHP and MySQL
Chapter 4: Adding Effects and Multimedia to User Interface Design
Chapter 5: AJAX Drag and Drop Feature using script.acluo.us
Chapter 6: In-place Editing usingscript.aculo.us
Chapter 7: Creating Autocompletion using script.aculo.us
Chapter 8: Slider for Dynamic Applications using script.aculo.us
Chapter 9: script.aculo.us in One Go
Chapter 10: Todonow: A Tadalist Clone
Chapter 11: Creating Delicious and Digg Bookmarks Manager
Chapter 12: Creating a Shopping Search Engine
Chapter 13: Common 43: 43 Things, 43 Places, and 43 People Clones
Index
  • Chapter 1: About script.aculo.us
    • Welcome to the script.aculo.us world
    • Versions
    • The script.aculo.us fun begins
      • Effects
      • Drag and drop
      • AJAX
    • Much more fun
    • Summary
  • Chapter 2: Exploring Client-side Techniques with Prototype
    • About Prototype
      • The story so far: Versions
      • Compatibility
    • Prototype features—a walk-through
      • Getting started with Dollar, DOM, and more
      • AJAX components—an overview
        • Ajax.Request
        • Ajax.Updater
        • Ajax.PeriodicalUpdater
        • Ajax.Responders
      • Hands-on examples
    • Event handling
      • Description
      • Handling general events
        • Syntax
      • Handling mouse events
      • Handling keyboard events
      • Hands-on examples
        • Handling the keyboard events example
        • Handling mouse event example
    • Redefining forms with Prototype
      • Introduction
      • Description
      • Usage
      • Hands-on examples
    • Getting more hands-on
      • Hands-on example: How to use XML to read data from the server using Prototype
    • Summary
  • Chapter 3: Server-side Techniques with PHP and MySQL
    • Basic requirements
      • A word about PHP 5.0 or above
      • A word about MySQL 5.0
      • The WAMP server: A must-have for Windows users
      • phpMyAdmin
    • Getting the playground ready
      • Checking the PHP installation using the WAMP server
      • Checking the MySQL installation using the WAMP server
      • Adding Prototype library in our code
      • Adding the script.acluo.us library in our code
      • Basic classes
        • DBConfig.php
        • DBClass.php
        • Secure.php
    • Hands-on examples: Common scripts
      • User login management system
        • Signup.php
        • Login.php
        • Index.php
        • Logout.php
      • Adding a username availability script to the login management system
      • Creating a simple tag cloud
    • Summary
  • Chapter 5: AJAX Drag and Drop Feature using script.acluo.us
    • Introduction to the drag and drop feature
    • Explanation of the drag and drop feature
    • Code usage of the drag and drop feature
    • Hands-on example: Creating a drag and drop sample in one line of code
    • Hands-on example: Advanced drag and drop tutorial
    • Summary
  • Chapter 6: In-place Editing usingscript.aculo.us
    • An introduction to the in-place editing feature
    • Getting started with in-place editing
    • Code usage of the in-place editing features and options
    • Tips and tricks with in-place editing
      • Disabling the element for the in-place editing functionality
      • Entering into the edit mode
      • Submitting on Blur
      • Callbacks for onEnterEditMode and onLeaveEditMode
    • Hands-on example: In-place editing with server-side handling
    • Hands-on example: InPlaceCollectionEditor
    • Summary
  • Chapter 7: Creating Autocompletion using script.aculo.us
    • Introduction to autocompletion
    • Explanation of the autocompletion feature
      • Types of autocompletion sources
        • Remote sources
        • Local sources
      • Options for autocompletion sources
        • Options for remote sources
        • Options for local sources
    • Code usage of autocompletion using remote sources
    • Code usage of autocompletion using local sources
    • Hands-on example: Autocompletion using remote sources
    • Hands-on example: Advanced autocompletion using remote sources for multiple fields
    • Hands-on example: Autocompletion using local sources
    • Summary
  • Chapter 8: Slider for Dynamic Applications using script.aculo.us
    • First steps with slider
      • Parameters for the slider definition
      • Options with the slider
      • Types of slider
        • Vertical slider
        • Horizontal slider
    • Code usage for the slider
      • Code usage for the vertical slider
      • Code usage for the horizontal slider
      • Code usage for sliders with options
    • Tips and tricks with the slider
      • Reading the current value of the slider
      • Multiple handles in the slider
      • Disabling the slider
      • Enabling the slider
    • Hands-on example: Using vertical and horizontal slider
    • Summary
  • Chapter 9: script.aculo.us in One Go
    • Hands-on example: Multiple script.aculo.us features mash up
      • Adding in-place editing in page
      • Adding effects to the page
      • How about adding the drag and drop feature?
      • Out of the box thinking—adding multiple features to an element
    • Hands-on example: Quick revision of all the features of script.aculo.us in one page
      • Let's start with effects
      • Some in-place editing
      • A little bit of drag and drop
      • The slider needs to be in picture too
      • How can we miss music?
    • Summary
  • Chapter 10: Todonow: A Tadalist Clone
    • The BIG picture
    • Features and functionality
    • Creating a database playground
    • Let's log in…
    • User interface comes first
    • View all my lists
      • Logic and code
    • View all my lists along with a summary of incomplete items
      • Logic and code
    • Creating new lists
      • Logic and code
    • Adding items to our lists
      • Adding items to the database
      • Reading the newly added item and placing it back on the page
    • Adding effects to our items
    • Mark items as completed
      • Add the item to the completed <div>
      • Delete the item from the incomplete <div>
      • Change the status of the item to completed
    • Convert completed items to incomplete status
      • Add the item to the incomplete <div>
      • Delete the item from the complete <div>
      • Change the status of the item to incomplete
    • Deleting lists
    • Let's wrap up and log out
    • Our Todonow is ready to go live
    • Summary
  • Chapter 11: Creating Delicious and Digg Bookmarks Manager
    • Application at a glance
    • Features and functionality
    • The database playground for our application
    • User profile home page
    • Submit new tutorials
      • Submitting a tutorial URL
      • Adding title, description, and tags to the tutorial
    • View tutorial
    • Deleting tutorials
    • Search using real-time autocompletion
    • Exploring the tag cloud features of 2.0 applications
      • Adding tags to tutorials
      • Reading all the tags in the database
      • Creating a tag cloud
      • Search using tags
    • Don't forget to log out
    • Ideas for life
    • Summary
  • Chapter 12: Creating a Shopping Search Engine
    • Application at a glance
    • Features and functionalities
    • The user management system
    • Selecting the products to buy
    • Adding effects
    • Searching products
    • Searching products using the tag cloud
      • Generating a tag cloud
      • View products for a tag name
    • Summary
  • Chapter 13: Common 43: 43 Things, 43 Places, and 43 People Clones
    • Getting the database ready
      • Database for places
      • Database for people
      • Database for things
    • Advanced commenting system
      • Creating a comments form
      • Posting comments
      • Edit or Delete comments
    • Modules ready to go live
      • User management system
      • Tag cloud features
    • Adding 2.0 flavour to applications
      • AJAX modules
      • Effects
      • Real-time search
      • In-place editing
      • Drag and drop
    • Putting the building blocks together
      • Features and functionalities
    • Summary

Sridhar Rao

Sridhar Rao has been learning, working and developing web applications from the time he was introduced to web. The very idea of reaching out to masses and bringing change in the behavior of the users through web applications excites him the most. Most of his work has been in PHP, MySQL and Javascript. He has worked with some of the leading technology and services companies in his IT career.

Sridhar currently works for the world’s leading database and enterprise company. He holds an engineering degree in Information Technology and is based out of Bangalore, India.

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.

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 and script.aculo.us Web 2.0 Application Interfaces +    OpenSceneGraph 3.0: Beginner's Guide =
50% Off
the second eBook
Price for both: £23.15

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

What you will learn from this book

  • Discover the script.aculo.us library with the help of real-world case studies
  • Explore wonderful Prototype library features like DOM, AJAX, and event handling
  • Unleash the server-side techniques using wonderful PHP and MySQL
  • Add wonderful Multimedia effects like morph, highlight, fade, and MP3 sounds
  • Get to grips with AJAX using Drag and Drop feature
  • Learn the tips, tricks and applications of the InPlaceEditor and InPlaceCollection Editor with just a few lines of code
  • Explore all the striking features of script.aculo.us including Sliders, Auto-Completion, Multimedia, and so on
  • Implement some of the exciting features of Prototype and script.aculo.us to create a ready-to-go-live project
  • Create a mash-up of Delicious and Digg applications and experience a new shopping search by integrating features of script.aculo.us library to our web applications
  • Integrate modules to build clones for raw applications

In Detail

script.aculo.us is a JavaScript library that provides dynamic visual effects, user interface controls, and robust AJAX features. It is to client-side what PHP is to server-side – powerful, simple, complete fun, and above all, a MUST! As developers, we all dream of building applications that users can instantly fall in love with and get productive. Simple and niche applications are the future of web applications. script.aculo.us when used with PHP as a server-side scripting language, can give us a new way of looking at things and changing the way we work.

script.aculo.us provides you with easy-to-use, cross-browser user interface JavaScript libraries to enhance your web sites and web applications. It provides dynamic visual effects, user interface controls, and robust AJAX features. This book covers all aspects for a developer to learn and master the art of using advanced JavaScript also referred to as 2.0 aspects in PHP web applications. script.aculo.us is an effective and powerful add-on to the Prototype library and when combined with PHP, it can make a lot of difference. The difference every developer dreams of.

This book has been written keeping in view every basic step as well as covering the most complex aspects while writing our applications — from simple effects, to the AJAX way of communicating through systems in applications. It gives you a completely new way of adding interactivity to your web applications. You will learn how sript.aculo.us provides interactivity and beauty to your project so that it engages users and appeals to the masses.

Faster, more efficient, and more productive applications are what we are trying to build. Each chapter of this book has been hand-crafted to make sure that you as a developer can learn and master the art of making beautiful applications.

The book covers all the various aspects of script.aculo.us with a few real-world clone projects, which will surely help you explore your creative side.

The aim of this book is to make you go "WOW"!

A complete how-to guide for using script.aculo.us and PHP to enhance your web applications and get your project up and running

Approach

This book has a fast-paced and practical approach. It focuses on features, tutorials, quick-explanations, tips-n-tricks, and live real-world examples, using script.aculo.us. It contains complete code for all projects, all in an AJAX way. The author uses his vast experience as a programmer to show an interesting and creative way of building web applications.

Who this book is for

This book is for web developers who build simple yet agile and useful web applications. It is useful for PHP beginners and assumes basic knowledge of HTML, CSS, JavaScript, and PHP. The examples in the book use PHP, but can be adapted easily to other languages.

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