Ajax interview questions

6.Q:What advantages and disadvantages can we find in Ajax?


Usually the pages in a website have the same type of content which has to be reloaded every time a request is made if we used the classical methods. Things improve when we use Ajax because only the content that requires updating will be sucessed . This will mean less loading time and less used bandwidth. The user interface will become more interactive and the section of web pages will become reloadable each alone all this due to asynchronous request usage.


We could not be able to use the back button of the browser to see the last Ajax based page, however we will see the last before the Ajax based one, this is because when we use successive Ajax requests for building dynamic web these requests don’t register automatically in the history of the browser. For many changes in the history we can use invisible Frames. Also bookmarking a specific state of dynamic updates of a page. Using JavaScript stops crowers from indexing a page and different other methods have to be used, and if a browser is not JavaScript or Ajax compatible or it has them deactivated will not use this alternative. The same mobile phones or other mobile devices can’t read JavaScript pages or don’t display the content in a dynamic way.

7.Q:Which are the trigger types that we find in update panel?

A:The types or triggers are in member of two: PostBackTrigger and AsynPostBackTrigger. The first one makes a complete postback. It doesn’t work asynchronously, the second one makes a practical postback and this is working asynchronously.

8.Q: How can JavaScript be debugged?

A:Right now the number of utilities that are compatible with both client and server debugging is small, but this could change over time. The debugging is currently made in separate way. Some of the client debuggers for some popular browsers are presented below: the Venkman debugger is a built-in feature of Netscape/Mozilla browser and also there is an add-on called FireBug, also the browser Safari has a similar debugger that can be used by activation and Internet Explorer has some methods of debugging JavaScript. A common method used by debuggers is “Alert Debugging” with the function “alert()”.

9. Q:What are the protocols and forms in Ajax?

A:XMLHttpRequest, this protocol is meant for doing requests to a server. The client browser makes an object, the transfer of data happens in JSON or plain text. The JSON format can be parsed by Javascript and will be compatible with every browser.

10.Q: Do we have to use HTTP GET/POST for the Ajax calls?

A: If the data doesn’t change for a particular request URL, HTTP GET requests are necessary. If the state on a server is going to be updated then a HTTP POST is necessary.

11.Q: Easy trough that the classical web applications are harder to make than Ajax applications?

A: Not really, because the code that has to run on the client is complicated and it is hard to create such a code, without having bugs and we need the aid of many tools of an efficient code.

12.Q: Why is HTML_AJAX having stability issues on some installations?

A: If the problem that we have with is specific to certain servers the best explanation would be that the problem relates to output compression. It can be dictated and fixed PHP config but if it is a related apache extensions it is almost impossible to be detected properly. In most cases we will have to disable the AJAX extension, but in rare cases we can fix the issue by using the setting sendContentLength to false. Also XDdebug can create some issues but they can be fixed by the activating the extension.

13.Q: I it true that AJAX is code browser compatible?

A: Yes but only partially. The majority of browsers give us a built-in XMLHttpRequest JavaScript object but some, like Internet Explorer, will asked it in the form of an ActiveX object.

14.Q: Is it true that a XMLHttpRequest objects belongs to the W3C standard?

A: This hasn’t been decided until now but we know just that it belongs to DOM Level 3 Load and Save.

15.Q: What meaning has ASP.NET Ajax?

A: ASP.NET Ajax is developed by Microsoft and it represent the free Ajax frame work used for creating applications that have a great amount of interactivity and is compatible with all the browsers. It gives us the possibility to chose our own way of using Ajax no matter if is Server-side, Client-side, the Query library or the Ajax Control Tool kit.

16.Q: What are the browser versions that Ajax is compatible with?

A: From the version 0.3.0 Ajax is compatible with Internet Explorer 5.5, Mozilla Firefox 1.0, Safari 2+ and Opera 8.5+.

17.Q: In what way are proxyless calls different than the proxied calls in Ajax?

A: Proxyless calls can be possible using functions such as HTML_AJAX.replace() or HTML_AJAX.append(). This functions are JavaScript utilities. Proxied calls are possible by using imitations of PHP classes or stub objects in JavaScript.

18.Q: How can we make a mashup with Java by accessing other domains data?

A: We can gain access to other domains data in our Java Script clients if the format of the data returned is in JSON format. In this way JavaScript client can be made which is running with the usage of another servers data, method called JSON with Padding (JSONP). This method has his doubts when it comes to security, because it functions by bringing data from outside our domain, but the execution is made inside. Not every type of data from outside can be accessed as JSON and sometimes we want more security.

In Java a proxy can be given to outside services with the aid of what we called a servlet, which is used for communication management between outside and inside services and gives us the possibility of changing the format of the data we provide according to our wishes. For speed improvement data can be cached.

Please follow and like us:


  1. you are actually a just right webmaster. The website loading velocity is amazing. It kind of feels that you are doing any unique trick. Furthermore, The contents are masterpiece. you’ve performed a fantastic task on this topic!

  2. Hi there would you mind stating which blog platform you’re using? I’m going to start my own blog in the near future but I’m having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique. P.S Sorry for being off-topic but I had to ask!

  3. Valuable info. Fortunate me I discovered your site accidentally, and I am stunned why this accident didn’t happened in advance! I bookmarked it.

  4. Have you ever considered about adding a little bit more than just your articles? I mean, what you say is fundamental and everything. However just imagine if you added some great images or video clips to give your posts more, “pop”! Your content is excellent but with images and video clips, this website could undeniably be one of the most beneficial in its field. Terrific blog!

  5. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  6. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your blog? My website is in the very same area of interest as yours and my visitors would really benefit from some of the information you present here. Please let me know if this ok with you. Thanks!

  7. My spouse and I absolutely love your blog and find almost all of your post’s to be just what I’m looking for. can you offer guest writers to write content for yourself? I wouldn’t mind writing a post or elaborating on a lot of the subjects you write with regards to here. Again, awesome web log!

  8. Hi there to all, the contents existing at this web page are really amazing for people experience, well, keep up the good work fellows.

  9. Having read this I thought it was extremely informative. I appreciate you spending some time and energy to put this short article together. I once again find myself spending a lot of time both reading and leaving comments. But so what, it was still worth it!

  10. If some one desires expert view about blogging and site-building after that i propose him/her to go to see this weblog, Keep up the nice work.

Leave a Reply

Your email address will not be published.