GIS and Media fusion

"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild

User Tools

Site Tools


ajax2:techxhr

This is an old revision of the document!


Technique XMLHTTPRequest

Les premières techniques existent depuis longtemps avec celle de Script Loading la plus largement utilisée. Mais le Web 2.0 sous sa forme “web applicatif” a véritablement pu décoller grâce à la standardisation de l'objet XMLHTTPRequest (voir Intro).

C'est un outil qui est dédié au déclenchement d'une requête en arrière-plan et qui permet de contrôlé directement le dialogue client/serveur.

  • Part1/xhr1.html : fonctionnement (new XMLHttpRequest, xhr.open/send/onreadystatechange/readyState/status, …). Le résultat est contenu dans this.responseText (ici du HTML prêt à coller)
  • Part1/xhr2.html : avec envoi d'un paramètre et réponse en notation JSON (usage de JSON.parse)
ajax2/techxhr.1392900372.txt.gz · Last modified: 2018/05/16 10:05 (external edit)