Sams Teach Yourself Ajax, JavaScript, and PHP All in One and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Very Good See details
$7.99 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Kindle Edition
 
   
Sell Back Your Copy
For a $2.77 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sams Teach Yourself Ajax, JavaScript, and PHP All in One
 
 
Start reading Sams Teach Yourself Ajax, JavaScript, and PHP All in One on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Sams Teach Yourself Ajax, JavaScript, and PHP All in One [Paperback]

Phil Ballard (Author), Michael Moncur (Author)
2.5 out of 5 stars  See all reviews (11 customer reviews)

List Price: $39.99
Price: $29.50 & this item ships for FREE with Super Saver Shipping. Details
You Save: $10.49 (26%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Only 16 left in stock--order soon (more on the way).
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $13.68  
Paperback $29.50  
Sell Back Your Copy for $2.77
Whether you buy it used on Amazon for $7.99 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $2.77.
Used Price$7.99
Trade-in Price$2.77
Price after
Trade-in
$5.22

Book Description

0672329654 978-0672329654 July 12, 2008 1

In just a short time, you can learn how to use Ajax, JavaScript, and PHP to create interactive interfaces to your web applications by combining these powerful technologies.

 

No previous Ajax programming experience is required. Using a straightforward, step-by-step approach, each lesson in this book builds on the previous ones, enabling you to learn the essentials of Ajax programming with JavaScript, PHP, and related technologies from the ground up.

 

Regardless of whether you run Linux, Windows, or Mac OS X, the enclosed CD includes a complete Ajax programming starter kit that gives you all the programming tools, reference information, JavaScript libraries, and server software you need to set up a stable environment for learning, testing, and production.

 

Learn how to…

  • Build better, more interactive interfaces for your web applications
  • Make JavaScript, HTML, XML, and PHP work together to create Ajax effects
  • Compile an Ajax application
  • Create and consume web services with SOAP and REST
  • Avoid common errors and troubleshoot programs
  • Use popular Ajax libraries to speed up and improve common programming tasks

 

On the CD

  • XAMPP for Windows, Mac OS X, and Linux–an easy-to-install package to set up a PHP- and MySQL-enabled Apache server on your computer
  • The jEdit programming editor for Windows, Mac, and Linux
  • Prototype, Scriptaculous, Rico, and XOAD–popular JavaScript libraries for creating Ajax applications and effects
  • A complete Ajax, HTML, XML, and PHP tutorial reference library in searchable PDF format
  • Source code for the examples in the book

 

Phil Ballard is a software engineering consultant and developer specializing in website and intranet design and development for an international portfolio of clients. He has an honors degree from the University of Leeds, England, and has worked for several years in commercial and managerial roles in the high technology sector.

 

Michael Moncur is a freelance webmaster and author. He runs a network of websites and has written several bestselling books about web development, networking, certification programs, and databases.

 

Category: Web Development

Covers: Ajax, JavaScript and PHP

User Level: Beginning—Intermediate

 

$39.99 USA / $43.99 CAN / £25.99 Net UK

 


Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Sams Teach Yourself Ajax, JavaScript, and PHP All in One + Perl by Example (4th Edition) + XHTML/CSS Basics for Web Writers
Price For All Three: $136.57

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Perl by Example (4th Edition) $29.67

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • XHTML/CSS Basics for Web Writers $77.40

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

About the Author

Phil Ballard, the author of Sams Teach Yourself Ajax in 10 Minutes, graduated in 1980 with an honors degree in electronics from the University of Leeds, England. Following an early career as a research scientist with a major multinational, he spent a few years in commercial and managerial roles within the high technology sector, later working full time as a software engineering consultant. Operating as “The Mouse Whisperer” (http://www.mousewhisperer.co.uk), Ballard has spent recent years involved solely in website and intranet design and development for an international portfolio of clients.

 

Michael Moncur is a freelance webmaster and author. He runs a network of websites, including the Web’s oldest site about famous quotations, online since 1994. He wrote Sams Teach Yourself JavaScript in 24 Hours and has also written several bestselling books about networking, certification programs, and databases. He lives with his wife in Salt Lake City, Utah.

 

Excerpt. © Reprinted by permission. All rights reserved.

Introduction

Introduction

Over the last decade or so, the World Wide Web has grown in scope from being a relatively simple information repository to becoming the first stop for many people when seeking entertainment, education, news, or business resources.

Websites themselves need no longer be limited to a number of static pages containing text and perhaps simple images; the tools now available allow the development of highly interactive and engaging pages involving animations, visual effects, context-sensitive content, embedded productivity tools, and much more.

The list of technologies available for producing such pages is broad. However, those based on Open Source licenses have become, and remain, highly popular due to their typically low (often zero) entry cost, and to the huge resource of user-contributed scripts, tutorials, tools, and other resources for these tools and applications available via the Internet and elsewhere.

In this book, we give a detailed account of how to program fluid, interactive websites using server- and client-side coding techniques and tools, as well as how to combine these to produce a slick, desktop-application-like user experience using Ajax.

The programming languages used in this book include the ubiquitous JavaScript (for client-side programming) and the immensely popular open-source PHP language (for server-side scripting, and available with the majority of web-hosting packages). The nuts and bolts of Ajax programming are described in detail, as well as the use of several advanced open-source frameworks that contain ready-written code for quickly building state-of-the-art interactive sites.


Note - The CD that accompanies this book provides all the tools required on your journey through learning to program in PHP, JavaScript, and Ajax.


What Is Ajax?

Ajax stands for Asynchronous JavaScript And XML. Although strictly speaking Ajax is not itself a technology, it mixes well-known programming techniques in an uncommon way to enable web developers to build Internet applications with much more appealing user interfaces than those to which we have become accustomed.

When using popular desktop applications, we expect the results of our work to be made available immediately, without fuss, and without our having to wait for the whole screen to be redrawn by the program. While using a spreadsheet such as Excel, for instance, we expect the changes we make in one cell to propagate immediately through the neighboring cells while we continue to type, scroll the page, or use the mouse.

Unfortunately, this sort of interaction has seldom been available to users of web-based applications. Much more common is the experience of entering data into form fields, clicking on a button or a hyperlink and then sitting back while the page slowly reloads to exhibit the results of the request. In addition, we often find that the majority of the reloaded page consists of elements that are identical to those of the previous page and that have therefore been reloaded unnecessarily; background images, logos, and menus are frequent offenders.

Ajax promises us a solution to this problem. By working as an extra layer between the user's browser and the web server, Ajax handles server communications in the background, submitting server requests and processing the returned data. The results may then be integrated seamlessly into the page being viewed, without that page needing to be refreshed or a new one being loaded.

In Ajax applications, such server requests are not necessarily synchronized with user actions such as clicking on buttons or links. A well-written Ajax application may already have asked of the server, and received, the data required by the user—perhaps before the user even knew she wanted it. This is the meaning of the asynchronous part of the Ajax acronym.

The parts of an Ajax application that happen "under the hood" of the user's browser, such as sending server queries and dealing with the returned data, are written in JavaScript, and XML is an increasingly popular means of coding and transferring formatted information used by Ajax to efficiently transfer data between server and client.

We'll look at all these techniques, and how they can be made to work together, as we work through the chapters.

Who This Book Is For

This volume is aimed primarily at web developers seeking to build better interfaces for the users of their web applications and programmers from desktop environments looking to transfer their applications to the Internet.

It also proves useful to web designers eager to learn how the latest techniques can offer new outlets for their creativity. Although the nature of PHP, JavaScript, and Ajax applications means that they require some programming, all the required technologies are explained from first principles within the book, so even those with little or no programming experience should be able to follow the lessons without a great deal of difficulty.

How To Use This Book

All the technologies—including a refresher of WWW basics—are explained from first principles, so that even non-programmers or those unfamiliar with these languages should be able to follow the development of the concepts with little problem.

The book is divided into parts, each dedicated to a particular technology or discussion topic. Within each part, the chapters each specialize in a given aspect or subtopic. It should therefore be easy to follow the instructional flow of the book by a quick look through the table of contents.

However, if you are already a competent programmer in one or more of the technologies used—in PHP for instance, or in JavaScript—then feel free to speed-read or skip the sections that you don't need.

To try out many of the examples you'll need access to a web server that supports PHP, and a means to upload files into your web space (probably FTP). Most web hosts include PHP in their hosting packages, or can do so on request at minimal or no cost.

Alternatively, the CD that accompanies this book contains everything required to set up a web serving environment on your own computer. This package is called XAMPP, and it contains everything you need to develop fully functional, interactive websites like those described in this book, ready to be deployed to a web-based server at a later date if you so choose. Look out for the boxes marked "On the CD" as you work through the book.

Conventions Used In This Book

This book contains special elements as described by the following:


Tip - These boxes highlight information that can make your programming more efficient and effective.



Note - These boxes provide additional information related to material you just read.



Caution - These boxes focus your attention on problems or side effects that can occur in specific situations.


Try It Yourself

The Try It Yourself section offers suggestions for creating your own scripts, experimenting further, or applying the techniques learned throughout the chapter. This will help you create practical applications based on what you've learned.


Note - Sections like this remind you about relevant information or tools available on the CD that accompanies the book.


A special monospace font is used on programming-related terms and language.

Setting Up Your Workspace

While you can write the code in this book using just a simple text editor, to run the examples you'll need a computer (with Windows, Mac, or Linux operating system) running a modern browser such as Internet Explorer or Firefox.


Tip - You can download Microsoft Windows Explorer from http://www.microsoft.com/ and the latest version of Firefox from http://www.mozilla.com/.


You will also need to load files on to a web server—if you already have a web host that supports PHP, you can use your web space there. Alternatively, the accompanying CD has everything you need to set up your own web server for private use, either on your own PC or another on your network.

What's on the CD

The accompanying CD contains everything you could need to get the best from this book. Included on the CD you'll find

  • XAMPP, a complete open source compilation you can use to easily install the Apache web server, PHP language, and MySQL database manager on your computer. Versions are provided for Linux, Mac, and Windows environments.

  • jEdit, a Java-based programmer's editor that's perfect for creating or modifying code. The CD includes files for Java, Mac, or Windows.

  • A selection of open source frameworks for developing sophisticated web applications. Programming examples based on some of these frameworks are presented towards the end of the book.


© Copyright Pearson Education. All rights reserved.


Product Details

  • Paperback: 384 pages
  • Publisher: Sams; 1 edition (July 12, 2008)
  • Language: English
  • ISBN-10: 0672329654
  • ISBN-13: 978-0672329654
  • Product Dimensions: 9 x 7.1 x 1 inches
  • Shipping Weight: 1.6 pounds (View shipping rates and policies)
  • Average Customer Review: 2.5 out of 5 stars  See all reviews (11 customer reviews)
  • Amazon Best Sellers Rank: #812,790 in Books (See Top 100 in Books)

More About the Author

Phil Ballard graduated in 1980 with an Honours Degree in Electronics from the University of Leeds, England.

Following an early career as a Research Scientist with a major multinational, Phil spent a few years in commercial and managerial roles within the high technology sector, later working full time as a Software Engineering Consultant.

Operating as 'The Mouse Whisperer' (http://www.mousewhisperer.co.uk), Phil has spent recent years involved solely in website and intranet design and development for an international portfolio of clients, while another of his websites (http://www.crackajax.net) is home to an active and fast-growing Ajax programming community.

Phil is currently based in South East England.

 

Customer Reviews

11 Reviews
5 star:
 (1)
4 star:
 (1)
3 star:
 (2)
2 star:
 (6)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
2.5 out of 5 stars (11 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

13 of 15 people found the following review helpful:
2.0 out of 5 stars This book confuses me greatly., September 17, 2008
By 
E. G. Stephanis (Grove City, PA USA) - See all my reviews
(REAL NAME)   
This review is from: Sams Teach Yourself Ajax, JavaScript, and PHP All in One (Paperback)
Firstly, when a book is about a constantly changing web-programming technology like AJAX, you expect it to be up-to-date, right?

Well, two chapters in, and I've already spotted several typographical errors. What's worse is the outdated nature of some of the technologies depicted in the book. Let me illustrate:

Chapter 1: When illustrating assorted web browsers the text uses IE6. I'm sorry, but IE7 has been officially released for nearly two years now, and you couldn't be bothered to upgrade the screenshots in that time? This book was published June 2008, with a 2009 copyright, and you're using screenshots that were outdated in 2006?

Further, the fact that the screenshot of Firefox in the first chapter shows that at the time of the screenshot, Firefox 1.0.7 was the current release shows that that was taken mid-2005, as Firefox 1.5 was released November 2005.

I'm sorry, but these over-two-years-old screenshots of antiquated technologies featured in a text, and the fact that it seems to feature IE6 throughout already has me somewhat turned off to the book. If this is the attention to detail that they have paid thus far, what will have slipped through the cracks in the programming portions, and what other techniques were already antiquated by the time this book was published?
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 6 people found the following review helpful:
2.0 out of 5 stars Incomplete, September 22, 2008
By 
L. Carter (Tempe, AZ USA) - See all my reviews
(REAL NAME)   
This review is from: Sams Teach Yourself Ajax, JavaScript, and PHP All in One (Paperback)
As has been said in a previous review, this book already seems quite dated after only the first two chapters. Having completed the book, I can say it only got worse. Much of the basics are covered fairly well, but as the book progresses into more complicated areas, where more detailed explanations are really needed, it fails to deliver. Some of the example code will not even run without error. It seems the book is a "best of" compilation thrown together from bits of previous books, but purported to be a new work.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


3 of 3 people found the following review helpful:
2.0 out of 5 stars I still don't understand JavaScript, September 11, 2011
Amazon Verified Purchase(What's this?)
This review is from: Sams Teach Yourself Ajax, JavaScript, and PHP All in One (Paperback)
I bought this book in an attempt to teach myself Javascript and PHP. It seemed like a good idea at the time, the name implied the possibility. I found this book to be pretty average. I haven't finished it yet but I still need to write this review. I completed the entire JavaScript section of the book, as per the reading, the coding and the activities, and only learnt that I keep making a lot of mistakes in my coding (oh and I have made a clock, sort of, WOW! - Sarcasm). 130 odd pages in and all I can say is I know what Javascript is, and sort of what its capable of but that's it. This book left me confused with a headache, and I still know practically nothing about JavaScript. I can kind of read the code now, but I still have no real understanding of the code's purpose as its written. I hope the PHP section redeems this book but I won't hold my breath. After the decent HTML/CSS book by this publisher (different authors) I expected a bit better.

I realise that JavaScript is complicated (to me at least) and out of the 2 books I've read this was the better one, but I still don't know how. I found this book so unhelpful that I have ordered other books to try and salvage my attempts at JavaScripting and PHP.

Also 130 pages to learn JavaScript
40 pages to Learn PHP
And 70 Pages of "Complex Ajax Technology"

This book is way too short. My other JavaScript book, which is incredibly out of date is over 600 pages, and is only JavaScript. I will be returning to it (as complex as it is) to try and work out what I've wasted my time doing.

Turn Back! Run Away! (from this book) It's too late for me!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews









Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
ajax object, using string objects, current stock price, return req, echo date, php header, href property, commodo consequat, callback function, var keyword, php echo, returned data, php script
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Internet Explorer, Using Variables, Returning Data, Document Object Model, Controlling Flow, Creating Simple Scripts, Arial Black, Our First Ajax Application, World Wide Web, Hello Ajax, Drop Zone, Using Rico, Introducing Ajax, Microsoft Windows, Using the Returned Data, Using Functions, The Heart of Ajax, Home Phone, Data Types, Get Server Time, Getting More, Simple Object Access Protocol, Testing the Script, Stock Reader, Formatting Text
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Surprise Me!
Search Inside This Book:


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(8)
(7)
(3)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!




Look for Similar Items by Category


Look for Similar Items by Subject