News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
<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?

  1. Add the following options to each $.ajax function call:

     global: true, 
    error: function (XMLHttpRequest, textStatus, errorThrown){ $("#errorInfo").text("<li>Error information is: " + textStatus + "</li>");
  2. Add the following code to the $(document).ready function on the page:

     $("#errorInfo").ajaxError(function(event, request, settings){ $(this).append("<li>Error requesting page " +settings.url + "</li>"); });
  3. Add the following option to each $.ajax function call:

    error: function (XMLHttpRequest, textStatus, errorThrown){ $("#errorInfo").text("<li>Error information is: " + textStatus + "</li>"); }
  4. Add the following code to the $(document).ready function on the page:

    $.ajaxError(function(event, request, settings){
    $(this).append("<li>Error requesting page " + settings.url + "</li>");});
    Add the following option to each $.ajax function call:
    global: true
Answer: Answer is b
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;