The XHR (XMLHttpRequest) object is the core of the Ajax engine. It is the object that enables a page to get data from (using the GET method) or post data to (using the POST method) the server as a background request, which means that it does not refresh the browser during this process. The XHR eliminates the need to wait on the server to respond with a new page for each request and allows users to continue to interact with the page while the requests are made in the background.
Aside from the background data processing, the GET and POST methods of the XHR object work the same as a standard HTTP request. Using either the POST or the GET method allows you to make a request for data from the server and receive a response in any standardized format. The most common formats in which to receive a response are XML, JSON (JavaScript Object Notation), and text. "The Response." POST is specifically useful when sending data that is larger than 512 bytes (an amount that the GET method cannot handle). After a response is received, the application can be populated with new data from the server by using the DOM with DHTML, which is a combination of XHTML, JavaScript, and CSS.
12 comments:
Can any one tell me '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.
What is JSON in AJAX?
JSON is the JavaScript Object Notation, and it is a lightweight data interchange format. It provides Java Scripts eval() method to easily parse an XML.
What does AJAX stands for? :(
AJAX:- Asynchronous JavaScript and XML :)
Who is the inventor of AJAX?
nobody 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.
They're probably after the name Jesse James Garrett of Adaptive Path, who coined the term
"Coined A Name For" and "Invented" are two different things. I think it's safe to say, "Any individual who claims to have invented AJAX (the tech) is a fraud." Just like the "sphere" existed before it got the name, so is AJAX.
Is Ajax just another name for XMLHttpRequest?
No. XMLHttpRequest is only part of the Ajax equation. XMLHttpRequest is the technical component that makes the asynchronous server communication possible; Ajax is our name for the overall approach described in the article, which relies not only on XMLHttpRequest, but on CSS, DOM, and other technologies.
Post a Comment