"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
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ajax:jsonxhr [2011/05/31 22:04] oertz |
ajax:jsonxhr [2018/05/15 17:18] (current) |
||
---|---|---|---|
Line 19: | Line 19: | ||
* créer une instance XMLHttpRequest et préparer la fonction "callback" qui traite la réponse | * créer une instance XMLHttpRequest et préparer la fonction "callback" qui traite la réponse | ||
* la réponse sera simplement injectée dans un élément <div> de l'IHM | * la réponse sera simplement injectée dans un élément <div> de l'IHM | ||
+ | |||
+ | * **Le corrigé :** | ||
+ | * **avec fonction anonyme : http://ogo.heig-vd.ch/ajax/TP2_form/index_xhr.html** | ||
+ | * **sans fonction anonyme : http://ogo.heig-vd.ch/ajax/TP2_form/index_xhr_2.html** | ||
+ | * **Notez bien l'utilisation du //this// pour se référer au contexte d'exécution du //callback// (ici l'objet XHR)** | ||
===== TP3 ===== | ===== TP3 ===== | ||
Line 29: | Line 34: | ||
* Plus de suggestions cette fois-ci ! | * Plus de suggestions cette fois-ci ! | ||
* sauf une référence http://www.w3schools.com/jsref/dom_obj_select.asp | * sauf une référence http://www.w3schools.com/jsref/dom_obj_select.asp | ||
+ | |||
+ | * **Le corrigé : http://ogo.heig-vd.ch/ajax/TP3_xhr/index.html** |