1. Question: You need to write jQuery code to select the first heading (h2) tag on the page and then slowly fade the item into view. Which line of code would accomplish this task?

    A
    $("#h21").fadeIn(500);

    B
    $("h2:first").fadeIn("slow");

    C
    $(".h2:first").fadeIn(500);

    D
    $("h2:first").fadeIn(500);

    Note: Not available
    1. Report
  2. Question: You want to use the .ajax() method to call a web method named GetCityCodes. This web method is contained on the same webpage as the jQuery code and UI markup. This method should be called by using JSON. The web method takes the state parameter. Which of the following calls would you use?

    A
    $.ajax({
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    url: "CityLookup.aspx/GetCityCodes",
    data: "{'state': '" + state + "'}",
    success: function (data) {
    alert(data.d);
    },

    B
    $.ajax({
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    url: "CityLookup.asmx/GetCityCodes",
    data: "{'state': '" + state + "'}",
    success: function (data) {
    alert(state.d);
    },

    C
    $.ajax({
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    url: "CityLookup.aspx/GetCityCodes/" + state,
    success: function (data) {
    alert(data.d);
    },

    D
    [/code] $.ajax({ type: "POST", dataType: "json", contentType: "application/json", url: "CityLookup.asmx/GetCityCodes", data: "state:" + state, success: function (data) { alert(data.d); }, [/code]

    Note: Not available
    1. Report
  3. Question: You want to use an HTTP GET to retrieve a basic text file from the server by using AJAX and jQuery. Which of the following jQuery methods would you use?

    A
    $.post()

    B
    $.getScript()

    C
    $getJSON()

    D
    $.get()

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd