Loading stuff through Ajax-requests is simple with jQuery. The following code loads a remote page using an asnychronous XML HTTP request and replaces the content of the HTML tag with the ID “panel”:


If you want to add more options, you can use the following notation:

         type: "GET",
         url: '/items/'+id,
         data: "category=excellent",
         async: true,
         dataType: "script",
         success: function(html){

Posting data is also simple, just exchange the type “GET” by “POST”. For more examples see the documentation.