data
accessing directly, 365–370
accessing downloaded, in code, 288–294
downloading, 95–98, 100–101
form, 552–556
obtaining, 98–100
passing to functions with PHP, 512–513
passing to server-side scripts
with GET method, 106–110
with POST method, 110–115
retrieving from documents, 349–359
data argument, connect method, 224
Data object, 655
Date object, 655
default arguments, PHP, 514–515
delete special operator, JavaScript, 65
desktop applications, 3, 6, 8, 18, 29, 32
detachEvent method, 326
Digg Spy application, 26
Direct Web Remoting (DWR), 271–276
display function, Ajax, 146
Display Message button, 604, 612, 668
<div> element, JavaScript, 56
DOCTYPE events, 343, 375
Document element, 345
Document object, 297, 303
document object, JavaScript, 37
Document Object Model (DOM)
appending elements using, 299–305
creating Ajax-enabled shopping cart
creating cross-browser mouse event object, 315–320
handling mouse down events, 320–323
handling mouse move events, 323–324
handling mouse up events, 325–328
downloading images with Ajax, 328–333
handling Ajax timeouts, 333–337
introduction to, 297–299
replacing elements using, 305–310
document type definition (DTD), 375
DOCUMENT_ROOT server variable, $_SERVER, 556
document.bgcolor property, JavaScript, 37
documentElement property, JavaScript, 298, 344
DocumentElement.html application, 346
document.fgcolor property, JavaScript, 37
document.lastmodified property, JavaScript, 37
documents, retrieving data from, 349–359
document.title property, JavaScript, 37
document.write method, 37, 50, 427–434
doFilter method, 635, 637, 645, 649, 655
doGet method, 661
DOM (Document Object Model)
appending elements using, 299–305
creating Ajax-enabled shopping cart
creating cross-browser mouse event object, 315–320
handling mouse down events, 320–323
handling mouse move events, 323–324
handling mouse up events, 325–328
downloading images with Ajax, 328–333
handling Ajax timeouts, 333–337
introduction to, 297–299
replacing elements using, 305–310
domains, calling, 159–160
DomDocument object, 243, 244
dot operator (.), 158
do…while loop, 505–506
downloaded data in code, accessing, 288–294
downloading
data, 95–98, 100–101
images, 17–18
images with Ajax, 328–333
menu items, 395–396
text with Ajax, 282–288
XML, 118–125
dragging and dropping, 18–21
Dramatic Style button, 423
DTD (document type definition), 375
DWR (Direct Web Remoting), 271–276
dynamic HTML
catching users attention with animation, 457–464
createElement, 447–452
document.write, 427–434
dynamic styles, 423–427
dynamic tables, 452–457
methods, 419, 434
mouseovers, 419–423
overview, 419
properties, 419, 437
updating parts of pages
using methods, 434–437
using properties, 437–443
using text ranges, 443–446
dynamicTable.html application, 454