nerdexam
Microsoft

70-515 · Question #72

You create an ASP.NET page. The page uses the jQuery $.ajax function to make calls back to the server in several places. You add the following div element to the page. <div id="errorInfo"> </div>…

The correct answer is B. Add the following code to the $(document).ready function on the page. See the full explanation below for the reasoning.

Question

You create an ASP.NET page. The page uses the jQuery $.ajax function to make calls back to the server in several places. You add the following div element to the page. <div id="errorInfo"> </div> You need to implement a single error handler that will add error information from all page $.ajax calls to the div named errorInfo. What should you do?

Options

  • AAdd the following options to each $.ajax function call:
  • BAdd the following code to the $(document).ready function on the page:
  • CAdd the following option to each $.ajax function call:
  • DAdd the following code to the $(document).ready function on the page:

How the community answered

(35 responses)
  • A
    11% (4)
  • B
    83% (29)
  • C
    3% (1)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice