Question: What are the advantages of AJAX?
- Quick Response.
- Quick Response without loading page.
- Save the Bandwidth
- Client Server Interaction what user letting know (User will not get disturb)
Question: What are the dis Advantages of AJAX?
- Dependency on JavaScript.
- An simple js error, Ajax will not called.
- Security issues Might comes, if not implemented securely.
- Difficult in Debugging for beginner
- Sometimes browser compatibility issues comes.
Question: What are top website, who uses Ajax?
- Youtube
- Bing
- Gmail
- Linkdin
Question: What are security issues in AJAX?
- Ajax is visible in browser console
- Request, Response, header and cookie are visiable in browser console.
- Every time called ajax is purely visiable in Ajax
- An Ajax request can be called by hackers OR unauthorized, It can damage the website if there are not properly security checks
- Attackers can try the ajax call with different request parameter.
Question: What are the technologies used by AJAX?
- Javascript
- XMLHttpRequest
- XML/JSON/HTML
- DOM
- You can also use third party libaraies like jQuery, mootools etc
Question: What are common AJAX Framework?
- jQuery
- MooTools
- Prototype
- YUI
- Dojo Toolkit
- Google Web Toolkit (GWT)
Question:What are Ajax applications?
The web applicable which use the more ajax calls are ajax application.
Question: What are different stage of XMLHttpRequest?
- 0: request not initialized
- 1: server connection established
- 2: request received
- 3: processing request
- 4: request finished and response is ready
Question: In Ajax call, which method is more secure GET/Post?
POST is more secure as compare to Get Method.
Question: Can anyone send ajax request with POST Method ?
Yes, can send using CURL.
Question: What is the difference between JavaScript and AJAX? JavaScript an object-oriented computer programming language used in web browsers.
Ajax is set of web development techniques using JavaScript to send/receive the data from server without loading page.
Question: What is Asynchronous in Ajax?
We can set the Asynchronous value as true OR false.
Async=true
Ajax request execute independently, Its response can come earlier than other request which is execute later .
Async=falseAjax request does not execute independently, Its response can comes when earlier request finished.
Question: How to submit entire form data with Ajax?
//serialize ajax Data var formData = $('form#formId').serialize(); $.ajax({ url: '/my/site', data: formData, type: 'post', success: function(result) { console.log(result); } });
Question:Give a simple example of JSONP with Ajax?
$.getJSON("http://twitter.com/status/user_timeline/padraicb.json?count=10&callback=?", function(result){ //Now result have response of ajax call console.log(result); });