A scripting technique for silently loading new data from the server. Although AJAX scripts commonly use the soon to be standardized XMLHttpRequest object, they could also use a hidden iframe or frame. An AJAX script is useless by itself. It also requires a DOM Scripting component to embed the received data in the document.
Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This is meant to increase the web page's interactivity, speed, and usability.
AJAX Interviews are getting tough these days as the technology grows faster. To get through the AJAX interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed AJAX questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on AJAX and various other technologies interview preparation.
1. 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 not access the local filesystem without the user?s permission. An AJAX interaction can only be made with the servers-side component from which the page was loaded. A proxy pattern could be used for AJAX interactions with external services. You need to be careful not to expose your application model in such as way that your server-side components are at risk if a nefarious user to reverse engineer your application. As with any other web application, consider using HTTPS to secure the connection when confidential information is being exchanged
2. Does AJAX work with Java?
Yes, 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.
3. 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 immediate notifications of updates to the client. Comet is an event based low latency server side push for AJAX applications. Comet communication keeps one of the two connections available to the browser open to continously communicate events from the server to the client.
4. 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 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
5. What AJAX framework do you recommend for PHP applications?
SAjax, NAjax, FAjax. All of them are ok, but it it best to make your own to suit your needs
6. What are the different frameworks available In AJAX.
A good framework that I have seen is "Zephyr". It is used with php and seems to be very easy to use. You can get it from here http://zephyr-php.sourceforge.net Prototype.JS Framework is available with detailed documentation, its very easy to handle AJAX and JavaScript, Introduce $ concept its very simple, For Ajax specially u don't need to check cross broswer, OPen, Close and error handling through traditional AJAX.
7. What are the different frameworks available In AJAX?
A good framework is ?Zephyr?. It is used with php and seems to be very easy to use. Prototype.JS Framework is available with detailed documentation, its very easy to handle AJAX and JavaScript, Introduce $ concept its very simple, For Ajax specially u don?t need to check cross broswer, Open, Close and error handling through traditional AJAX.
8. What is AJAX?
Ajax is an acronym for ?Asynchronous JavaScript And XML.? Web pages are endowed with snippets of code that can access remote services (like web services) and not refresh the page. This prevents ?round tripping? which is the cause for display flicker and slow response times.
9. what is the difference between DOM Parser and AUX Parser.?
In DOM parser is used at server side in php using domxml. While AUX parser is used at client side in javascript
10. Who invented AJAX?
Microsoft first implemented the XMLHTTPRequest object in Internet Explorer 5 for Windows as an ActiveX object. It is the term coined after this support. Asynchronous javascript and XML. Nobody invented AJAX, Jesse James Garrett of Adaptive Path coined the phrase early 2005 - but the tech was already in place much earlier than that.