adding records via Ajax 59
what we??™ll do 60
add the Ajax elements 62
apply the Ajax layer 63
set up the Ajax 64
prepare the form data 65
complete the function 66
prepare for HTML 67
validate the form data 68
update the database 72
complete the XML 73
handle the response 75
prepare the page 76
handle the XML 77
display the results 79
test the Ajax layer 80
extra bits 82
vi contents
6. creating a search 87
what we??™ll do 88
start the HTML page 89
add the form 91
start a PHP page 92
query the database 93
print the results 94
report any errors 95
test the non-Ajax version 96
extra bits 97
7. enabling an Ajax search 99
what we??™ll do 100
add the Ajax elements 102
apply the Ajax layer 103
set up the Ajax 105
complete the function 106
prepare for XML 107
query the database 108
fetch the results 109
complete the PHP 110
handle the response 111
prepare the page 112
handle the XML 113
display the results 114
handle the name 116
handle the department 117
handle the email 119
display no results 121
complete the function 122
test the Ajax layer 123
extra bits 124
appendix 129
Ajax issues 130
Ajax alternatives 131
introducing JSON 132
sending JSON 134
accessing JSON data 136
using JSON data 137
web resources 139
JavaScript frameworks 140
PHP-Ajax frameworks 141
debugging JavaScript 142
extra bits 146
index 149
vii contents
This page intentionally left blank
introduction
The Visual QuickProject Guide you hold in your hands o?¬? ers a unique way to
learn about new technologies.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25