O'Reilly logo

MooTools 1.3 Cookbook by Jay Larry G. Johnston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required