Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery AJAX introduction

jQuery - AJAX introduction


AJAX is a technique for exchanging data with the server that updates parts of a web page without reloading the whole page.

jQuery AJAX examples

Use jQuery AJAX to change text content

Try it »


What is AJAX?

AJAX = Asynchronous JavaScript and XML.

In short, AJAX loads data in the background and displays it on the page without reloading the entire web page.

Applications using AJAX: Google Maps, Tencent Weibo, Youku Video, Renren, and more.

You can find it in our jQuery Ajax reference manualLearn the specific applications of jQuery Ajax.

You can find it in our AJAX TutorialLearn more about AJAX in our AJAX tutorial.


About jQuery and AJAX

jQuery provides several AJAX-related methods.

With jQuery AJAX methods, you can use HTTP Get and HTTP Post to request text, HTML, XML or JSON from a remote server - and you can load that external data directly into selected elements of the page.

lamp Without jQuery, AJAX programming is still somewhat difficult.

Writing regular AJAX code is not easy, because different browsers implement AJAX differently. This means you have to write extra code to test for browsers. However, the jQuery team has solved this problem for us; with just a single line of code we can achieve AJAX functionality.