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:techajax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
ajax2:techajax [2014/03/18 17:27]
oertz [Cookie Loading]
ajax2:techajax [2014/03/18 19:55]
oertz
Line 27: Line 27:
     * CodePostal ([[http://​ogo.heig-vd.ch/​ajaxrad/​Ex1/​codepostal/​codepostal_0.html|codepostal_0.html]]) : construire une application web avec technique AJAX permettant d'​interagir avec le service [[http://​www.geonames.org/​export/​web-services.html#​postalCodeLookupJSON|GeoNames postalCodeLookupJSON]]     * CodePostal ([[http://​ogo.heig-vd.ch/​ajaxrad/​Ex1/​codepostal/​codepostal_0.html|codepostal_0.html]]) : construire une application web avec technique AJAX permettant d'​interagir avec le service [[http://​www.geonames.org/​export/​web-services.html#​postalCodeLookupJSON|GeoNames postalCodeLookupJSON]]
       * Suggestions : voici un exemple de [[http://​www.geonames.org/​postalCodeLookupJSON?​postalcode=1401&​country=CH&​callback=callbackFunction|requête]]       * Suggestions : voici un exemple de [[http://​www.geonames.org/​postalCodeLookupJSON?​postalcode=1401&​country=CH&​callback=callbackFunction|requête]]
 +      * Corrigé : http://​ogo.heig-vd.ch/​ajaxrad/​Ex1/​codepostal/​codepostal.html
  
 Conclusions : une technique facile à mettre en oeuvre, même si un peu tordue. Elle est limitée à l'​envoi en GET. Notons que cette technique en mode JSON est aussi appelée JSONP, avec le P pour //padding// qui correspond au nom de callback qui préfixe le contenu résultat (nous verrons plus loin un autre avantage lié). Conclusions : une technique facile à mettre en oeuvre, même si un peu tordue. Elle est limitée à l'​envoi en GET. Notons que cette technique en mode JSON est aussi appelée JSONP, avec le P pour //padding// qui correspond au nom de callback qui préfixe le contenu résultat (nous verrons plus loin un autre avantage lié).
ajax2/techajax.txt · Last modified: 2018/05/16 10:05 (external edit)