Animated Cubes

Geo & Clock Cube

Settings

Status Message

Copyright © 2009. André Boulouard, Walter Randelshofer, Werner Randelshofer.
All rights reserved.

Cross Domain AJAX Requests via PHP proxy

Click on the map to create a marker and to apply the current latitude and longitude on the cubes, then click on the marker to open an infowindow and click the 'Elevation' link. The marker is draggable.

The script in this page uses a simple proxy with about 40 lines of PHP code. The proxy script was slightly adapted and responds to GET and POST requests. The proxy requires PHP with the curl extension installed.

The AJAX elevetion request goes to the proxy and from there to www.earthtools.org. The answer goes back to the proxy and from there to the client script.

© Walter Randelshofer. All rights reserved.