AJAX - The Complete Reference

(avery) #1

PART III


Chapter 10: Web Services and Beyond 513


It is also possible to use combinations of direct <script> calls and proxy calls.
As an example, we built a simple mash-up that allows you to type in an address. It
fetches a map from Google Maps and combines the data with the local Starbucks in your
vicinity in case you are in dire need of corporate caffeine. In the version at http://ajaxref.
com/ch10/mashupproxy.html, it pulls the data from Google Maps directly via a <script>
tag approach but uses a PHP proxy to fetch the store location via a Web scrape and then
combines them together.
Free download pdf