Join Regular Classroom : Visit ClassroomTech

AJAX Interview Questions – Intermediate Level | Codewindow.in

1. What is Ajax?

Ajax is abbreviated as Asynchronous Javascript and XML. It is new technique used to create better, faster and more interactive web systems or applications. Ajax uses asynchronous data transfer between the Browser and the web server.

This technique is used to make internet faster and user friendly. It is not a programming language.

2. What is AJAX event?

Ajax requests produce a wide variety of distinctive occasions that you can subscribe to. Here’s a full listing of the activities and in what order they are triggered.

There are 2 types of events in Ajax

Local Events: Local Events are callbacks that you can subscribe to inside the Ajax request object.

Global Events: Global events are triggered on the document, calling any handlers who may be listening.

Example of Local Events:

$.ajax({
    beforeSend: function(){
    },
    complete: function(){
    }
});
Example of Global Events:
$.ajax({
   url: "bestinterviewquestion.html",
   global: false,
}); 

3. How many types of triggers are present in update panel?

There are two types of triggers used in update panel:

PostBackTrigger – This works as full postback and it cannot work asynchronously

AsyncPostBackTrigger – Partial post back asynchronously

4. What are all the controls of Ajax?

Following are the controls of Ajax:

ScriptManager

ScriptManagerProxy

UpdatePanel

UpdateProgress

 

Timer

5. How can I improve my Ajax performance?

To improve AJAX call performance, follow these steps:

Reduce the AJAX request numbers.

Wisely elect the event on which AJAX request triggers.

Appropriately use GET requests.

Reduce the amount of data transmitted.

Secure data using Caching.

C QA

Mostly Asked

DS QA

Mostly Asked

DBMS QA

Mostly Asked

ML QA

Mostly Asked

6. Explain the types of active states in Ajax?

There are five types of active states available in AJAX. Here are those:

request not initialized – ready state 0

server connection established – ready state 1

request received – ready state 2

processing request – ready state 3

request finished, and the response is ready – ready state 4

7. What is the name of the DLL that contains Ajax control tool kit?

Ajaxcontroltoolkit.dll is the DLL used for Ajax control tool kit and it can be downloaded from the internet. It can be added in the tool box or copied directly in the bin folder.

 

8. What role of #&& in querystring?

# is treated as fragment delimiter to delimit the history state and && precedes is used to check on the information in the query string.

9. What are the advantages of Ajax?

Following are the advantages of Ajax:

Bandwidth utilization – It saves memory when the data is fetched from the same page.

More interactive

Speeder retrieval of data

    10.  What are the disadvantages of Ajax?

    Following are the disadvantages of Ajax:

    AJAX is dependent on Javascript. If there is some Javascript problem with the browser or in the OS, Ajax will not support

    Ajax can be problematic in Search engines as it uses Javascript for most of its parts.

    Source code written in AJAX is easily human readable. There will be some security issues in Ajax.

    Debugging is difficult

    Increases size of the requests

    Slow and unreliable network connection.

    Problem with browser back button when using AJAX enabled pages.

    11. What is JSON in Ajax?

    JSON is abbreviated as JavaScript Object Notation.

    JSON is a safe and reliable data interchange format in JavaScript, which is easy to understand for both users and machines.

    12. Where AJAX cannot be used?

    Users cannot use AJAX if

    If Page need to show in a search engine

    If browser does not support JavaScript

    If user wants to create secure application

    Click Here

    13. How can AJAX applications be debugged?

    Two tools are used for debugging:
    Fiddler for IE
    Firebug for Mozilla.

    14. What are the protocols used by Ajax?

    HTTP’s GET or POST
    XMLHttpRequest for placing a request with the web server
    Uses JSON to communicate between the client and server
    UED or URL encoded data

    15. What are the goals of Ajax?

    The basic goals of ASP.NET Ajax are:

    Reduced web server hits

    Reduced Network load

    Interactive user interface

    Platform and architecture neutrality

    Support for both synchronous and asynchronous communication

     

    Provide a server- and client-side framework

    16.  What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?

    Following are the functions:

    RegisterClientScriptBlock – The script is specified as a string parameter.

    RegisterClientScriptInclude – By setting the source attribute to a URL that point to a script file.

    RegisterClientScriptResource – specifies Resource name in an assembly. The source attribute is automatically populated with a URL by a call to an HTTP handler that retrieves the named script from the assembly.

    Web Development Topics

    HTML

    CSS

    JAVASCRIPT

    NODE JS

    REACT JS

    ANGULAR JS

    AJAX

    JQUERY

    PHP and MySQL

    JAVA MVC 

    VueJS

    JAVA Spring

    Categories
    Pages
    Recent Posts