Parsing and displaying a web service

There are two kinds of web services, those that are easy to deal with and those that major in their ability to pain the derriere. Google's web services are among the easiest to work with. They come documented with clear, concise instructions and really useful examples that work out of the box.

How to do it...

Choose a web service. We are going to use Google's search API for this recipe. Be sure to look back in Chapter 1, Oldies-but-Goodies: Foundational Moo for information on getting a Google API key. The one we signed up for there will work fine for this example as well!

<script type="text/javascript" src="mootools-1.3.0.js"></script> <!-- let's n0t forget the MORE --> <script type="text/javascript" src="mootools-more-1.3.0.js"></script> ...

Get MooTools 1.3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.