Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Beginner Level
OUTLINE
▪ Developer Essentials
▪ Understanding DOM & XML
▪ Understanding XML-HTTP request
▪ Previewing Links with AJAX
▪ Creating Dynamic Forms
▪ Understanding AJAX Frameworks
WHAT IS AJAX?
▪ AJAX known as “Asynchronous JavaScript And XML“
Property Description
readyState Holds the status of the XMLHttpRequest
responseText Returns the response data as a string
responseXML Returns the response data as XML data
status Returns the status-number of a request
statusText Returns the status-text (e.g. "OK" or "Not Found")
XMLHTTPREQUEST OBJECT
readyState
Value Definition
0 Uninitialized
Object contain no data
1 Loading
Object is currently loading its data
2 Loaded
Object has finished loading its data
3 Interactive
User may interact with object even though its not fully loaded
XMLHTTPREQUEST OBJECT METHODS
▪ abort()
▪ getAllResponseHeaders()
▪ getResponseHeader()
▪ Open()
▪ send()
XMLHTTPREQUEST OBJECT
status
Value Definition
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not found
500 Internal Server Error
PREVIEWING LINKS WITH AJAX
CREATING DYNAMIC FORMS