"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.
ajax:crossdomainexamples [2011/06/13 15:08] oertz |
ajax:crossdomainexamples [2018/05/15 17:18] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Cross-domain par l'exemple ====== | ||
- | ===== PROXY : ===== | ||
- | - Mise en place d'un proxy intermédiaire pour relayer une requête AJAX cross-domain | ||
- | * ce qui ne marche pas : http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/proxyYahoo_nok.html | ||
- | * ce qu'on peut faire pour ça marche : http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/proxyYahoo_ok.html | ||
- | * voyez le proxy [[http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/proxy.php.zip|proxy.php]] | ||
- | - Mise en place d'un proxy personnalisé pour relayer une requête POST utilisant une requête brut en format XML | ||
- | * geoserver.html, georequest.xml | ||
- | * voyez le proxy geoserver.php | ||
- | |||
- | ===== Injection de script / JSONP : ===== | ||
- | - Illustration de l'injection de script par insertion « à la main » d'une balise <script> (injectScript.html, en laissant getTime.php sur ogo) | ||
- | - Introduction JSONP avec jQuery (online introJSONP_0/1/2/3.html) |