query the
database p. 108
??? To debug any PHP-MySQL
problems, you??™ll need to print
out the query to inspect its
syntax. You should also invoke
the mysql_error() function
to see what problems the
database reports.
??? A useful debugging technique
when working with XML data
is to verify that your PHP
script is returning valid XML.
To see the result of the PHP
page, either use JavaScript to
access ajax.responseText
(in the handleResponse()
function) or submit your
form to the PHP page directly
(without using JavaScript).
??? For directly viewing XML in
your Web browser, you??™ll
want to use a browser that
supports the format. At the
time of this writing, this
includes recent versions of
Internet Explorer and Firefox,
but not Safari.
enabling an Ajax search 125
prepare the page p. 112
??? The new trick in this specifi c
example is the use of nodes
as the way of manipulating
the page??™s content. If you
think of the Document Object
Model as a tree, then a node
is a branch on that tree; each
branch has a parent (which is
either another branch or the
tree trunk) and some have
children (more branches).
Pages:
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112