Home / Web Development / Ajax / AJAX-Basic

AJAX-Basic

AJAX is Asynchronous JavaScript and XML.It is based on Javascript and HTTP request. Ajax is not a new programming language.
But a new way to use existing standards.The main function is updating parts of a web page, without reloading the whole page.




AJAX uses asynchronous data transfer (HTTP requests) between the browser and the Web server.

AJAX cannot work independently. It is used in combination with other technologies for create interactive webpages.

  • JavaScript
  • DOM
  • CSS



  • XMLHttpRequest

JavaScript:When an event occurs in a page the javascript functions are called.

DOM:It represents the structure of XML and HTML documents.API for accessing and manipulating structured documents.

CSS:Used for representing presentation style.

XMLHttpRequest:JavaScript object that performs asynchronous interaction with the server.



note:In AJAX , there is not discontinuity and you get the response very quickly, but when you try the standard GCI , you would have to wait for the response and your page also gets refreshed.

Syntax




$.ajax({name:value, name:value, … })

Loading Facebook Comments ...
Social Media Auto Publish Powered By : XYZScripts.com