Ajax.txt

Card Set Information

Author:
kimo
ID:
165875
Filename:
Ajax.txt
Updated:
2012-08-13 15:29:52
Tags:
Ajax
Folders:

Description:
Ajax Flashcards
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user kimo on FreezingBlue Flashcards. What would you like to do?


    • author "me"
    • fileName "Ajax"
    • tags ""
    • description ""
    • Ajax
    • Asynchronous Javascript And Xml
  1. AJax is made up of
    Many components
  2. First
    Get an object from the browser
  3. Second
    Use the object
  4. The object has _____ parts
    3
  5. These parts are
    • Two methods (open and send) and
    • One event (onreadystatechange)
  6. Calling open
    Open has three parameters
  7. 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
  8. Example:
    • function initAJAX () {
    • var xhr = initrequest ()
    • if (xhr != null) {
    • xhr.open("get","asynchpage.xml", true);
    • }
    • }
  9. Calling send
    send accepts 1 optional parameter, which is the data to send if the open method is post
  10. Example of send with post method
    • xhr.send();
    • xhr.send("fName=Mary&lName=Marvelous");

What would you like to do?

Home > Flashcards > Print Preview