Ajax.txt

    • 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");
Author
kimo
ID
165875
Card Set
Ajax.txt
Description
Ajax Flashcards
Updated