Building a Web Site with Ajax: Visual QuickProject Guide

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Ajax is at the heart of the Web 2.0 revolution. It isn't a technology but, rather, is a technique that leverages other technologies and techniques, such as CSS, XML, DHTML, and XHTML. Many Web designers and programmers would like to incorporate Ajax in their projects because of the amazing functionality it can add to a Web site, but they can't because of the steep learning curve. That's where this book steps in. It makes learning Ajax fun and easy -- a great place to start! Visual QuickProject Guides focus on a single project. In this case the project is creating a business employee directory, like an address book. What's being created is a better, new kind of Web site.

Author(s): Larry Ullman
Edition: 1
Publisher: Peachpit Press
Year: 2007

Language: English
Pages: 168

Visual QuickProject Guide: Building a Web Site with AJAX......Page 1
contents......Page 3
introduction......Page 6
how Ajax works......Page 7
what you’ll learn......Page 8
how this book works......Page 9
required tools......Page 11
companion web site......Page 14
the next step......Page 15
1. Access MySQL......Page 16
access MySQL......Page 17
make the database......Page 18
make the tables......Page 20
populate the tables......Page 22
extra bits......Page 24
2. Browsing Employees......Page 26
what we’ll do......Page 27
create an HTML page......Page 28
add the HTML form......Page 29
start a PHP page......Page 30
print the employees......Page 31
report on any errors......Page 32
connect to the database......Page 33
create a style sheet......Page 34
use the style sheet......Page 35
test the pages......Page 36
extra bits......Page 37
3. Browsing using AJAX......Page 40
what we’ll do......Page 41
make a function......Page 42
check for Ajax support......Page 43
call the function......Page 44
set up the Ajax......Page 45
begin the PHP page......Page 47
print the employees......Page 48
handle the response......Page 50
display the results......Page 51
modify the HTML......Page 52
test the Ajax layer......Page 53
extra bits......Page 54
4. Adding Records......Page 58
what we’ll do......Page 59
start the HTML page......Page 60
add the form......Page 61
add the form elements......Page 62
start a PHP page......Page 64
validate the form data......Page 65
update the database......Page 68
report any errors......Page 69
test the non-Ajax version......Page 70
extra bits......Page 72
5. Adding Records VIA AJAX......Page 74
what we’ll do......Page 75
add the Ajax elements......Page 77
apply the Ajax layer......Page 78
set up the Ajax......Page 79
prepare the form data......Page 80
complete the function......Page 81
prepare for HTML......Page 82
validate the form data......Page 83
update the database......Page 87
complete the XML......Page 88
handle the response......Page 90
prepare the page......Page 91
handle the XML......Page 92
display the results......Page 94
test the Ajax layer......Page 95
extra bits......Page 97
6. Creating a Search......Page 102
what we’ll do......Page 103
start the HTML page......Page 104
add the form......Page 106
start a PHP page......Page 107
query the database......Page 108
print the results......Page 109
report any errors......Page 110
test the non-Ajax version......Page 111
extra bits......Page 112
7. Enabling an AJAX Search......Page 113
what we’ll do......Page 114
add the Ajax elements......Page 116
apply the Ajax layer......Page 117
set up the Ajax......Page 119
complete the function......Page 120
prepare for XML......Page 121
query the database......Page 122
fetch the results......Page 123
complete the PHP......Page 124
handle the response......Page 125
prepare the page......Page 126
handle the XML......Page 127
display the results......Page 128
handle the name......Page 130
handle the department......Page 131
handle the email......Page 133
display no results......Page 135
complete the function......Page 136
test the Ajax layer......Page 137
extra bits......Page 138
Appendix......Page 143
Ajax issues......Page 144
Ajax alternatives......Page 145
introducing JSON......Page 146
sending JSON......Page 148
accessing JSON data......Page 150
using JSON data......Page 151
web resources......Page 153
JavaScript frameworks......Page 154
PHP-Ajax frameworks......Page 155
debugging JavaScript......Page 156
extra bits......Page 160
B......Page 162
E......Page 163
F......Page 164
I......Page 165
O......Page 166
S......Page 167
X......Page 168