List out differences between AJAX and JavaScript.
Answer
Ajax is Asynchronous Java Script and XML. Here on sending request to
the server, one needn’t wait for the response. Other operations on the page can
be carried out. Hence, Asynchronous. On the other hand, Java script sends an
HTTPRequest to the server and waits for the XML response.
E.g. populating State field. Using JavaScript we need to use the “Onchnage”
event where as using ajax, the request is just sent to populate the state list.
Other operations can be carried out on the page.
Ajax is a part of Java Script programming. Java Script is used to manage and
control a web page once downloaded. Ajax does not need to wait for the whole
page to download.
Use of Ajax can reduce connections to the server since the script has to be
requested once.
|