Prev | Current Page 43 | Next

Larry Ullman

"Building a Web Site with Ajax: Visual QuickProject Guide"


Instead they supported an
ActiveX object of type XMLHTTP.
Unfortunately, if users with one
of these versions of Internet
Explorer have disabled ActiveX
support (enabling it is a security
risk), they cannot use Ajaxenabled
applications like these.
browsing using Ajax 39
extra bits
set up the Ajax p. 30
??? The JavaScript refers to the Document
Object Model to access
elements in the HTML page. The
DOM is a map of every item in a
browser document. It can be used
and manipulated in limitless ways.
??? The getElementById() function
allows you to access a DOM element
by referring to its ID value. So
a form with an ID of dept_form
can be accessed via document.
getElementById(???dept_form??™).
??? Remember that the ajax variable
is an object of XMLHttpRequest
type. One of its functions is
open(). Provide this function
with the name of the page where
the request should be sent and
the method that should be used.
??? Because the PHP script that handles
the request expects to receive
a department ID in the URL, the
value selected in the HTML form
must be passed along with the
request.


Pages:
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55