Home
Flashcards
Preview
Ajax.txt
Home
Get App
Take Quiz
Create
author "me"
fileName "Ajax"
tags ""
description ""
Ajax
Asynchronous Javascript And Xml
AJax is made up of
Many components
First
Get an object from the browser
Second
Use the object
The object has _____ parts
3
These parts are
Two methods (open and send) and
One event (onreadystatechange)
Calling open
Open has three parameters
These parameters are:
1. Http method (get or post)
2. Url requested from the web server
3. Whether or not you want to use asynchronous communication
Example:
function initAJAX () {
var xhr = initrequest ()
if (xhr != null) {
xhr.open("get","asynchpage.xml", true);
}
}
Calling send
send accepts 1 optional parameter, which is the data to send if the open method is post
Example of send with post method
xhr.send();
xhr.send("fName=Mary&lName=Marvelous");
Author
kimo
ID
165875
Card Set
Ajax.txt
Description
Ajax Flashcards
Updated
8/13/2012, 7:29:52 PM
Show Answers
Home
Flashcards
Preview