Are you searching for Interview Questions and answers of Ajax? You are the right place. Here We have listed AJAX Interview Questions and Answers for freshers/beginners and experienced with examples on Java, .Net and Php, using Xml and Json, asynchronous request handling, Ajax example with database and a lot of Ajax topics.
These questions will be helpful for your interview preparation. If you prepare these Ajax interview questions and answers you will get an idea on the frequently asked interview questions which will be helpful to crack an interview.
Ajax Interview Questions and Answers
- What is Ajax?
This technique is used to make internet faster and user friendly. It is not a programming language.
- Does AJAX work with Java?
Answer: Absolutely. Java is a great fit for AJAX! You can use Java Enterprise Edition servers to generate AJAX client pages and to serve incoming AJAX requests, manage server side state for AJAX clients, and connect AJAX clients to your enterprise resources. The JavaServer Faces component model is a great fit for defining and using AJAX components.
- How many types of triggers are present in update panel?
Answer: 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
- What are all the controls of Ajax?
Answer: Following are the controls of Ajax:
- Do Ajax applications always deliver a better experience than traditional web applications?
Answer: Not necessarily. Ajax gives interaction designers more flexibility. However, the more power we have, the more caution we must use in exercising it. We must be careful to use Ajax to enhance the user experience of our applications, not degrade it.
- What is the difference between proxied and proxyless calls?
- Should I use an HTTP GET or POST for my AJAX calls?
Answer: AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.
- Some of the Google examples you cite don't use XML at all. Do I have to use XML and/or XSLT in an Ajax application?
- Whats with the -alpha in the install instructions?
Answer: HTML_AJAX hasn't had a stable release yet and the pear installer doesn't install non stable packages by default unless you specify a version.
- How do I test my AJAX code?
- When will HTML_AJAX have a stable release?
Answer: Once all the major features are complete and the API has been tested, the roadmap gives an idea of whats left to be done.
- What are all the browsers support AJAX?
Answer: Following browsers support AJAX:
- Internet Explorer 5.0 and above
- Opera 7.6 and above
- Netscape 7.1 and above
- Safari 1.2 and above
- What role of #&& in querystring?
Answer: # is treated as fragment delimiter to delimit the history state and && precedes is used to check on the information in the query string.
- How do I abort the current XMLHttpRequest?
Answer: Just call the abort() method on the request.
- What is the minimum version of PHP that needs to be running in order to use HTML_AJAX?
Answer: The oldest PHP version i've fully tested HTML_AJAX is 4.3.11, but it should run on 4.2.0 without any problems. (Testing reports from PHP versions older then 4.3.11 would be appreciated.)
- Which are the two methods used for cross domain Ajax calls?
Answer: There are two methods used to transfer data between the two more more security domains:
- CROS – Cross Origin Resource Sharing and it works with the HTTP web browsers
- JSONP – JSON with Padding which works with the HTTP GET and on legacy browsers
- What are all the technologies used by Ajax?
Answer: AJAX uses following technologies:
- Document Object Model (DOM)
- Extensible HTML (XHTML)
- Cascading Style Sheets (CSS)
Use Full Link for AJAX Training and Certification