Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

392 CHAPTER 8 Websites and services



  1. Correct answer: A
    A. Correct: XMLHttpRequest is used to make AJAX calls.
    B. Incorrect: AjaxRequest is not a valid object.
    C. Incorrect: JsonResponse is not valid object.
    D. Incorrect: AjaxAsync is not a valid object.

  2. Correct answer: A
    A. Correct: $.post() is used to POST.
    B. Incorrect: $.getJSON() uses the HTTP GET method.
    C. Incorrect: $.get() uses the HTTP GET method.
    D. Incorrect: $.param() sets parameters and does not call the server.

Free download pdf