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)- A11% (4)
- B83% (29)
- C3% (1)
- D3% (1)
Community Discussion
No community discussion yet for this question.