What is AJAX?
By kwlanje
@kwlanje (52)
India
6 responses
@musthafa510 (77)
• India
30 May 07
AJAX is shorthand for "Asynchronous JavaScript and XML",and it is used for creating interactive webpage
@julie111 (44)
•
30 Apr 07
(Asynchronous javascript and XML) Using an enhancenent in javascript that allows the webpages to be more interactive and behave like local applications. AJAX allows the webpage to retrieve small amounts of data from the server without reloding the entire page.
AJAX, also known as "remote scripting", allows web-based applications to be designed like LAN based applications.
@veladitya (82)
• India
20 Aug 07
swapanathorat...gave an excelleant description of ajax. to that of wht she said..i want to add some more spy to that ..
Yes , for that purpose...we instantiiate an XMLHttp Request object. and pass the url (from which the dta has to be captured ),GET/POST method to be used .true or false flag (if true == asynchronously else syn only.) Afetr when the response came we use responseText to print the data
@veladitya (82)
• India
20 Aug 07
swapanathorat...gave an excelleant description of ajax. to that of wht she said..i want to add some more spy to that ..
Yes , for that purpose...we instantiiate an XMLHttp Request object. and pass the url (from which the dta has to be captured ),GET/POST method to be used .true or false flag (if true == asynchronously else syn only.) Afetr when the response came we use responseText to print the data
@Matching_Allies (26)
• India
30 May 07
In a typical web page if we have to load a small portion of the page based on some event like...
Want to load a states dropdown based on the county selection. In a normal way we submit the form on country onChange event using javascript and reload the entire page. It is basically a time consuming process as the whole page has to be reloaded again.
When we submit a page the HTTP request is built by the browser IE / Firefox and sent to the server. Instead we can do it programatically within Javascript, we can send a XMLHTTP request to the web server and get only the piece of information you are looking for in XML format. In this case the states belonging to the country is retrieved as the response XML/string. It can then be parsed and the state dropdown can be reloaded.
In a normal submit, we cannot do any other activity as the browser is waiting is in the process of reloading the page. It is a synchronous activity where things happen one after the other, whereas in AJAX it is Asynchronous activity. When this whole process of request, response, parsing and reloading of states dropdown is happening we still can do other activities on the page without knowing something is happening behind.
Hope this helps
Venky
http://www.venky-itjobs.blogspot.com