"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.
Next revision | Previous revision | ||
ajax:crossdomainexamples [2011/06/10 09:07] oertz created |
ajax:crossdomainexamples [2018/05/15 17:18] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== PROXY : ===== | ===== PROXY : ===== | ||
- | - Tentative (infructueuse) de communication cross-domain sans un protocole spécifique (online proxyYahoo_nok.html) | + | - Mise en place d'un proxy intermédiaire pour relayer une requête AJAX cross-domain |
- | - Mise en place d'un proxy intermédiaire pour relayer une requête AJAX cross-domain (online proxyYahoo_ok.html + archive avec proxy.php) | + | * ce qui ne marche pas : http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/proxyYahoo_nok.html |
- | - Mise en place d'un proxy personnalisé pour relayer une requête POST utilisant une requête brut en format XML (online + archive avec geoserver.php et georequest.xml) | + | * ce qu'on peut faire pour ça marche : http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/proxyYahoo_ok.html |
+ | * voyez le proxy {{:ajax: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 | ||
+ | * l'application [[http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/geoserver.html|geoserver.html]], la requête XML [[http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/georequest.xml|georequest.xml]], le proxy personnalisé {{:ajax:geoserver.php.zip|geoserver.php}} | ||
- | ==== Injection de script / JSONP : ==== | + | ===== 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) | + | - Illustration de l'injection de script par insertion « à la main » d'une balise <script> : http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/injectScript.html |
- | - Introduction JSONP avec jQuery (online introJSONP_0/1/2/3.html) | + | * jetons un coup d'oeil au service {{:ajax:gettime.php.zip|getTime.php}} |
+ | - Introduction JSONP avec jQuery : http://ogo.heig-vd.ch/ajax/Exemples/5_Crossdomain/jsonp |