Ajax Interview Questions and Answers
Q1. What is supposed by using Ajax?
This technique is used to make internet faster and user pleasant. It isn't always a programming language.
Q2. What are Ajax programs?
Ans: Browser primarily based programs and platform independent programs are used by Ajax.
Q3. What are the benefits of Ajax?
Ans: Following are the blessings of Ajax:
1. Bandwidth usage
2.It saves memory when the statistics is fetched from the equal web page.
Three. More interactive
4.Speeder retrieval of statistics
Q4. What is JSON in Ajax?
Q5. What are the risks of Ajax?
Ans: Following are the negative aspects of Ajax:
3. Source code written in AJAX is effortlessly human readable. There can be some security troubles in Ajax.
Four. Debugging is hard (not impossible)
five. Increases length of the requests
6. Slow and unreliable community connection.
7. Problem with browser lower back button while using AJAX enabled pages.
Q6. What are all the technology utilized by Ajax?
Ans: AJAX makes use of following technologies:
Document Object Model (DOM)
Extensible HTML (XHTML)
Cascading Style Sheets (CSS)
Q7. Is AJAX code cross browser well matched?
Q8. What are the safety issues with AJAX?
Ans: The Ajax calls are sent in simple textual content format, this could cause insecure database access. The records gets stored on the clients browser, as a result making the statistics to be had to every body. It also lets in tracking browsing sessions by placing scripts.
Q9. How can you test the Ajax code?
Q10. What Is the Format of an AJAX Request?
Ans: An AJAX request may be in any layout:
1. Text File
three. JSON object
Q11. Where Should I Start?
Q12. Is an AJAX Request Synchronous or Asynchronous?
Ans: AJAX requests are asynchronous with the aid of nature, because of this that they have to run in the background independently of different activities.
Q13. Does Ajax Work With Java?
Ans: Absolutely. Java is a incredible match for AJAX! You can use Java Enterprise Edition servers to generate AJAX purchaser pages and to serve incoming AJAX requests, control server side nation for AJAX customers, and join AJAX clients in your enterprise resources. The JavaServer Faces element version is a extremely good fit for outlining and using AJAX components.
Q14. How many sorts of triggers are found in replace panel?
Ans: There are two varieties of triggers utilized in replace panel:
1.PostBackTrigger : This works as complete postback and it cannot work asynchronously
2. AsyncPostBackTrigger : Partial put up returned asynchronously
Q15. What are all of the browsers aid AJAX?
Ans: Following browsers assist AJAX:
Internet Explorer five.Zero and above
Opera 7.6 and above
Netscape 7.1 and above
Safari 1.2 and above
Q16. How are you able to discover that an AJAX request has been finished?
Ans: ReadyState belongings is used to test whether or not AJAX request has been finished. If the assets is equal to four, then the request has been finished and facts is to be had
Q18. Who Is Using Ajax?
Ans: Google is creating a massive funding in developing the Ajax method. All of the foremost merchandise Google has brought over the last year like Orkut, Gmail, the brand new beta model of Google Groups, Google Suggest, and Google Maps are Ajax applications. (For extra on the technical nuts and bolts of those Ajax implementations, check out these awesome analyses of Gmail, Google Suggest, and Google Maps.) Others are following healthy: a few of the features that people love in Flickr rely upon Ajax, and Amazon’s A9.Com seek engine applies similar techniques.
These projects display that Ajax is not handiest technically sound, but additionally sensible for real-global programs. This isn’t some other technology that handiest works in a laboratory. Ajax packages can be any size, from the very simple, unmarried-characteristic Google Suggest to the very complicated and complex Google Maps.
At Adaptive Path, we’ve been doing our very own work with Ajax over the past numerous months, and we’re understanding we’ve only scratched the floor of the wealthy interaction and responsiveness that Ajax packages can provide. Ajax is an critical improvement for Web applications, and its significance is growing. The biggest challenges in creating Ajax packages aren't technical. The core Ajax technologies are mature, strong, and properly understood. As there are such a lot of builders accessible who already realize how to use these technology, we expect to peer many more corporations following Google’s lead in reaping the competitive benefit Ajax presents.
The demanding situations are for the designers of those packages to forget about what we think we recognise about the constraints of the Web, and begin to imagine a much broader, richer range of opportunities
Q19. Do Ajax Applications Always Deliver A Better Experience Than Traditional Web Applications?
Ans: Not necessarily. Ajax gives interplay designers extra flexibility. However, the more electricity we've got, the greater warning we need to use in exercise it. We have to be careful to use Ajax to decorate the consumer revel in of our programs, not degrade it.
Q20. Are Ajax Applications Easier To Develop Than Traditional Web Applications?
Ans: This is running code, it would assist you.
xmldoc = req.ResponseXML;
Q22.What are all of the distinctive records sorts that JSON helps?
Ans: JSON supports following facts types:
Q24.What Is The Difference Between Proxied And Proxyless Calls?
Q25. Did Adaptive Path Invent Ajax? Did Google? Did Adaptive Path Help Build Google's Ajax Applications?
Ans: Neither Adaptive Path nor Google invented Ajax. Google’s recent merchandise are genuinely the highest-profile examples of Ajax programs. Adaptive Path changed into now not worried inside the development of Google’s Ajax programs, but we were doing Ajax work for some of our different clients.
Q26. Won't My Server-facet Framework Provide Me With Ajax?
Ans: You may be making the most of AJAX already. Many present Java primarily based frameworks already have some level of AJAX interactions and new frameworks and aspect libraries are being advanced to offer higher AJAX help. I might not list all the Java frameworks that use AJAX here, out of worry of lacking someone, but you may discover a accurate list at www.Ajaxpatterns.Org/Java_Ajax_Frameworks.