Ajax Interview Questions And Answers

Ajax Interview Questions list for experienced

  1. What is the name of object used for AJAX request?
  2. What is prerequisite for Update Panel in Ajax?
  3. How Ajax objects can be created?
  4. What are the protocols used by Ajax?
  5. What are all the security issues of Ajax?
  6. How can we handle concurrent requests?
  7. Define the role of the Update Panel?
  8. Can we use nested update panel in Ajax?
  9. What are the types of post back in Ajax?
  10. How can we handle exception handling in Ajax?
  11. What are the components of the ASP.NET Ajax Client Library?
  12. What are all the different data types that JSON supports?
  13. What is the difference between proxied and proxyless calls in AJAX?
  14. How many types of ready states in Ajax?
  15. What is the difference between RegisterClientScriptBlock, RegisterClientScriptInclude and RegisterClientScriptResource?
  16. Which request is better, Get or Post?
  17. What are the limitations of Ajax?
  18. What are the basic goals of ASP.NET Ajax?
  19. What are the basic Controls of ASP.NET AJAX?
  20. Should I consider AJAX?
  21. Does AJAX work with Java?
  22. Is it possible to set session variables from javascript?
  23. Do Ajax applications always deliver a better experience than traditional web applications?
  24. What is the difference between proxied and proxyless calls?
  25. Should I use XML or text, JavaScript, or HTML as a return type?
  26. Are there any frameworks available to help speedup development with AJAX?
  27. Should I use an HTTP GET or POST for my AJAX calls?
  28. Are Ajax applications easier to develop than traditional web applications?
  29. When do I use a synchronous versus a asynchronous request?
  30. How do I handle concurrent AJAX requests?
  31. Whats with the -alpha in the install instructions?
  32. How do I test my AJAX code?
  33. What exactly is the W3C DOM?
  34. When will HTML_AJAX have a stable release?
  35. What parts of the HTML_AJAX API are stable?
  36. What Browsers does HTML_AJAX work with?
  37. 30.How do I abort the current XMLHttpRequest?
  38. What is the minimum version of PHP that needs to be running in order to use HTML_AJAX?
  39. Why does HTML_AJAX hang on some server installs
  40. How do I get the XMLHttpRequest object?
  41. Are there any security issues with AJAX?
  42. What about applets and plugins ?
  43. Is AJAX code cross browser compatible?
  44. Techniques for asynchronous server communication have been around for years. What makes Ajax a "new" approach?
  45. Is Ajax a technology platform or is it an architectural style?
  46. Where can I find examples of AJAX?
  47. What is the XMLHttpRequest object?
  48. Does Ajax have significant accessibility or browser compatibility limitations? Do Ajax applications break the back button? Is Ajax compatible with REST? Are there security considerations with Ajax development? Can Ajax applications be made to work for users who have JavaScript turned off?
  49. Does Java have support for Comet style server-side push?
  50. Does Facebook use Ajax?
  51. Is AJAX a programming language?
  52. Who developed it?
  53. What does AJAX means?
  54. When did AJAX first appeared?
  55. What is Ajax used for?
  56. Who Is Using Ajax?
  57. Do I Really Need To Learn Javascript?
  58. Did Adaptive Path Invent Ajax? Did Google? Did Adaptive Path Help Build Google's Ajax Applications?
  59. Cannot Parse Xml Generated By Jsp I Am Generating An Xml Using Jsp, When I Run The Jsp In Ie It Shows The Xml As Per Dom, But When I Try To Parse It Using Javascript , The Command Xmldoc.documentelement ?
  60. Is Adaptive Path Selling Ajax Components Or Trademarking The Name? Where Can I Download It?
  61. What is AJAX?
  62. How AJAX works?

Ajax interview questions and answers on advance and basic Ajax with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Ajax also add your Questions if any you have to ask and for apply in Ajax Tutorials and Training course just send a mail on info@pcds.co.in in detail about your self.

Top Ajax interview questions and answers for freshers and experienced

What is Ajax ?

Answer : AJAX (Asynchronous JavaScript and XML) is a technique for creating seamless interactive websites via asynchronous data exchange between client and server. AJAX facilitates communication with the server or partial page updates without a traditional page refresh

Questions : 1 :: What is the name of object used for AJAX request?

XmlHttpRequest object is used for Ajax requests.

Questions : 2 :: What is prerequisite for Update Panel in Ajax?

Script Manager is pre-requisite to use Update Panel controls.

Questions : 3 :: How Ajax objects can be created?


Following syntax can be used to create Ajax objects: Var sample = New ajaxObject(‘path of the page’)

Questions : 4 :: 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...View answers

Questions : 5 :: What are all the security issues of Ajax?

Security issues that can be encountered When Ajax calls are sent through plain text and it may lead to know the database details Inserting scripts can also be possible and attackers can easily...View answers

Questions : 6 :: How can we handle concurrent requests?


Javascript functions should be written to handle concurrent requests and call back function can be passed as a parameter. Those parameters are passed to AjaxInteraction(URL, callback) object.

Questions : 7 :: Define the role of the Update Panel?

Update Panel is used to add functionality to the existing ASP.NET applications. By using partial page rendering, it can be used to update the content. Refresh can be made for the partial page instead...View answers

Questions : 8 :: Can we use nested update panel in Ajax?

Yes, we can use nested update panel in Ajax. Update panels can be nested to have more control over the Page Refresh.

Questions : 9 :: What are the types of post back in Ajax?


There are two types of post backs: Synchronous Postback Asynchronous Postback

Questions : 10 :: How can we handle exception handling in Ajax?

ErrorTemplate which is the child tag of Script Manager is used to handle exception handling in Ajax.

Questions : 11 :: What are the components of the ASP.NET Ajax Client Library?

Following components are used in Ajax client library: Component Layer Core Services Layer Browser Compatibility Layer

Questions : 12 :: What are all the different data types that JSON supports?

JSON supports following data types: String Number Boolean Array Object Null

Questions : 13 :: What is the difference between proxied and proxyless calls in AJAX?

Proxied calls are made through stub objects which can be called from PHP classes on the JavaScript side in AJAX. Proxyless calls are made using utility JavaScript functions like HTML_AJAX.replace()...View answers

Questions : 14 :: How many types of ready states in Ajax?

There are four ready states in Ajax: Initialization Request Process Ready

Questions : 15 :: 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...View answers

Questions : 16 :: Which request is better, Get or Post?

AJAX requests should use an HTTP GET request where the data does not change for a given URL requested. An HTTP POST should be used when state is updated on the server. This is highly recommended for...View answers

Questions : 17 :: What are the limitations of Ajax?

An Ajax Web Application tends to confuse end users if the network bandwidth is slow and there is no full postback running.

Questions : 18 :: What are the basic goals of ASP.NET Ajax?

AJAX stands for Asynchronous JavaScript and XML. It is a web technology that helps the users create dynamic, client-centric, user-friendly, and interactive web applications.The AJAX-based...View answers

Questions : 19 :: What are the basic Controls of ASP.NET AJAX?

There are some basic controls used in ASP.NET AJAX such as ScriptManager ScriplManagerProxy Timer UpdatePanel UpdateProgress

Questions : 20 :: Should I consider AJAX?

AJAX definitely has the buzz right now, but it might not be the right thing for you. AJAX is limited tothe latest browsers, exposes browser compatibility issues, and requires new skill-sets for many....View answers

Questions : 21 :: Does AJAX work with Java?

Absolutely. Java is a great fit for AJAX! You can use Java Enterprise Edition servers to generate AJAXclient pages and to serve incoming AJAX requests, manage server side state for AJAX clients,...View answers

Questions : 22 :: Is it possible to set session variables from javascript?

It's not possible to set any session variables directly from javascript as it is purely a client sidetechnology. You can use AJAX though to asyncronously...Cannot parse XML generated by JSP I am...View answers

Questions : 23 :: Do Ajax applications always deliver a better experience than traditional web applications?

Not necessarily. Ajax gives interaction designers more flexibility. However, the more power we have, the morecaution we must use in exercising it. We must be careful to use Ajax to enhance the user...View answers

Questions : 24 :: What is the difference between proxied and proxyless calls?

Proxied calls are made through stub objects that mimic your PHP classes on the JavaScript side. E.g., thehelloworld class from the Hello World example.Proxyless calls are made using utility...View answers

Questions : 25 :: Should I use XML or text, JavaScript, or HTML as a return type?

It depends. Clearly the 'X' in AJAX stands for XML, but several AJAX proponents are quick to point out thatnothing in AJAX, per se, precludes using other types of payload, such as, JavaScript,...View answers

Questions : 26 :: Are there any frameworks available to help speedup development with AJAX?

There are several browser-side frameworks available, each with their own uniqueness

Questions : 27 :: Should I use an HTTP GET or POST for my AJAX calls?

AJAX requests should use an HTTP GET request when retrieving data where the data will not changefor a given request URL. An HTTP POST should be used when state is updated on the server. This is...View answers

Questions : 28 :: Are Ajax applications easier to develop than traditional web applications?

Not necessarily. Ajax applications inevitably involve running complex JavaScript code on the client.Making that complex code efficient and bug-free is not a task to be taken lightly, and...View answers

Questions : 29 :: When do I use a synchronous versus a asynchronous request?

They don't call it AJAX for nothing! A synchronous request would block in page eventprocessing and I don't see many use cases where a synchronous request is preferable

Questions : 30 :: How do I handle concurrent AJAX requests?

With JavaScript you can have more than one AJAX request processing at a single time. In order toinsure the proper post processing of code it is recommended that you use JavaScript Closures....View answers

Questions : 31 :: Whats with the -alpha in the install instructions?

HTML_AJAX hasn't had a stable release yet and the pear installer doesn't install non stable packagesby default unless you specify a version.

Questions : 32 :: How do I test my AJAX code?

There is a port of JUnit for client-side JavaScript called JsUnit

Questions : 33 :: What exactly is the W3C DOM?

The W3C Document Object Model (DOM) is defined by the W3C as the following: The DocumentObject Model is a platform- and language-neutral interface.

Questions : 34 :: When will HTML_AJAX have a stable release?

Once all the major features are complete and the API has been tested, the roadmap gives an idea of whats left to be done.

Questions : 35 :: What parts of the HTML_AJAX API are stable?

We don't have a list right now, but most of the API is stable as of 0.3.0. There should be no majorchanges at this point, though there will be lots of new additions

Questions : 36 :: What Browsers does HTML_AJAX work with?

As of 0.3.0, all the examples that ship with HTML_AJAX have been verified to work with* Firefox 1.0+* Internet Explorer 5.5+ (5.0 should work but it hasn't been tested)Most things work with* Safari...View answers

Questions : 37 :: 30.How do I abort the current XMLHttpRequest?

Just call the abort() method on the request.

Questions : 38 :: What is the minimum version of PHP that needs to be running in order to use HTML_AJAX?

The oldest PHP version i've fully tested HTML_AJAX is 4.3.11, but it should run on 4.2.0 without anyproblems. (Testing reports from PHP versions older then 4.3.11 would be appreciated.)

Questions : 39 :: Why does HTML_AJAX hang on some server installs

If you run into an HTML_AJAX problem only on some servers, chances are your running into aproblem with output compression. If the output compression is handled in the PHP config we detectthat and do...View answers

Questions : 40 :: How do I get the XMLHttpRequest object?

Depending upon the browser... if (window.ActiveXObject) { // Internet Explorer http_request = newActiveXObject("Microsoft.XMLHTTP"); } else if...

Questions : 41 :: Are there any security issues with AJAX?

JavaScript is in plain view to the user with by selecting view source of the page. JavaScript can notaccess the local filesystem without the user's permission. An AJAX interaction can only be made...View answers

Questions : 42 :: What about applets and plugins ?

Don't be too quick to dump your plugin or applet based portions of your application. While AJAX andDHTML can do drag and drop and other advanced user interfaces there still limitations especially...View answers

Questions : 43 :: Is AJAX code cross browser compatible?

Not totally. Most browsers offer a native XMLHttpRequest JavaScript object, while another one(Internet Explorer) require you to get it as an ActiveX object....

Questions : 44 :: Techniques for asynchronous server communication have been around for years. What makes Ajax a "new" approach?

What’s new is the prominent use of these techniques in real-world applications to change thefundamental interaction model of the Web. Ajax is taking hold now because these technologies and...View answers

Questions : 45 :: Is Ajax a technology platform or is it an architectural style?

It’s both. Ajax is a set of technologies being used together in a particular way

Questions : 46 :: Where can I find examples of AJAX?

While components of AJAX have been around for some time (for instance, 1999 forXMLHttpRequest), it really didn't become that popular until Google took...

Questions : 47 :: What is the XMLHttpRequest object?

It offers a non-blocking way for JavaScript to communicate back to the web server to update only partof the web page.

Questions : 48 :: Does Ajax have significant accessibility or browser compatibility limitations? Do Ajax applications break the back button? Is Ajax compatible with REST? Are there security considerations with Ajax development? Can Ajax applications be made to work for users who have JavaScript turned off?

The answer to all of these questions is “maybe”. Many developers are already working on ways toaddress these concerns. We think there’s more work to be done to determine all the...View answers

Questions : 49 :: Does Java have support for Comet style server-side push?

Current AJAX applications use polling to communicate changes data between the server and client.Some applications, such as chat applications, stock tickers, or score boards require more...View answers

Questions : 50 :: Does Facebook use Ajax?

  Frederic Haddad, Web Strategist at Coddict Inc. Internet Marketing/Analysis aficionado. Originally Answered: Does Facebook use ajax only? Yes Facebook is fully AJAX based, unless...View answers

Questions : 51 :: Is AJAX a programming language?

AJAX isn't a programming language. AJAX just uses a mix of: A program worked in XMLHttpRequest object (to demand information from a web server) JavaScript and HTML DOM (to show or utilize the...View answers

Questions : 52 :: Who developed it?

  Microsoft Corporation developed it.  In the ahead of schedule to-mid 1990s, most Web destinations depended on complete HTML pages. Every client activity necessitated that a total new...View answers

Questions : 53 :: What does AJAX means?

   AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java...View answers

Questions : 54 :: When did AJAX first appeared?

March, 1999 was the time of its release. Ajax is certainly not a solitary innovation, but instead a gathering of advances. HTML and CSS can be utilized in blend to increase and style data. The...View answers

Questions : 55 :: What is Ajax used for?

 AJAX is a technique for creating fast and dynamic web pages. AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the...View answers

Questions : 56 :: Who Is Using Ajax?

Google is making a huge investment in developing the Ajax approach. All of the major products Google has introduced over the last year like Orkut, Gmail, the latest beta version of Google Groups,...View answers

Questions : 57 :: Do I Really Need To Learn Javascript?

Basically yes if you plan to develop new AJAX functionality for your web application. On the other hand, JSF components and component libraries can abstract the details of JavaScript, DOM and CSS....View answers

Questions : 58 :: Did Adaptive Path Invent Ajax? Did Google? Did Adaptive Path Help Build Google's Ajax Applications?

Neither Adaptive Path nor Google invented Ajax. Google’s recent products are simply the highest-profile examples of Ajax applications. Adaptive Path was not involved in the development of...View answers

Questions : 59 :: Cannot Parse Xml Generated By Jsp I Am Generating An Xml Using Jsp, When I Run The Jsp In Ie It Shows The Xml As Per Dom, But When I Try To Parse It Using Javascript , The Command Xmldoc.documentelement ?

his is working code, it might help you.if (!isIE)xmldoc = req.responseXML;else{//IE does not take the responseXML...View answers

Questions : 60 :: Is Adaptive Path Selling Ajax Components Or Trademarking The Name? Where Can I Download It?

Ajax isn’t something you can download. It’s an approach — a way of thinking about the architecture of web applications using certain technologies. Neither the Ajax name nor the...View answers

Questions : 61 :: What is AJAX?

AJAX is an acronym for Asynchronous JavaScript and XML. It is a group of inter-related technologies like JavaScript,...View answers

Questions : 62 :: How AJAX works?

AJAX communicates with the server using XMLHttpRequest object. Let's try to understand the flow of ajax or how ajax works by the image displayed below. As you can see in the above example,...View answers
More Question

Ask your interview questions on Ajax

Write Your comment or Questions if you want the answers on Ajax from Ajax Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---