Recherche dans le site/ Search this Blog:

Login



Ajax: Make the best use of asynchronous callbacks to dynamically refresh your page content without using the traditional "reload page" Imprimer

AJAX (Asynchronous JavaScript and XML) involves using javascript within your web pages to load information in XML format from the network in order to refresh your page content without having to use the traditional "reload page" mechanism.



The results that can be achieved are similar to the ones obtained traditionaly with Java or Flash Applets which have been able to connect to the network for a long time (1996 for Java applets running in a web page).

Take for example a page where a news feed or where trade market stock prices are displayed. You would just display the content in plain HTML using table, div or any tags available in traditional HTML. Then, a javascript would run in the background and fetch data from the network in XML format. The script would then refresh (e.g. change) the HTML content dynamically, without having to reload the page, since javascript has been able to do that for a long time.

So, in short AJAX is just javascript with the added functionality of being able to connect to the network thanks to the use of the newer XMLHttpRequest object.

You can view more details and an example here in this article from IBM.

 

 

 

Ajouter votre commentaire / Add your comment

Votre nom / Your name:
Sujet / Subject:
Commentaire:
SPAM: Ne pas inclure de lien ou utiliser le stratagème suivant: "yahoo.com slash mapage.html"     Nous utilisons un filtre qui bloque les commentaires suspects avec une erreur 403. De même, du code de programmation ou sql peut provoquer des erreurs 403. Veuillez utiliser un lien vers votre code tel que: "pastebin.com slash jVNqLieD"    Merci!
Comment:
SPAM: Do not include any links in your post or use the following construct: "yahoo.com slash mypage.html"    We are using a filter that denies suspicious posts with a 403 error. Programming language or SQL code may also cause a 403 error. Please provide a link to your code instead like: "pastebin.com slash jVNqLieD"    Thank you! :
  Lettres de vérification; lettres minuscules seulement, pas d
Retaper les lettres affichées / Word verification:
Mis à jour / Last updated ( mercredi, 26 mars 2008 22:46 )
 



Consultez TOUS nos fils d'actualité ici. / View ALL our newsfeed here.