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.
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> </head>
We have not been including the MooTools More in this chapter, but it is necessary in this recipe since we are using JSONP.
<body> <form action="javascript:" method...