JustTheWord API Sample Code
jtw + Wordle mashup
This sample code shows html and javascript (AJAX) to retrieve collocations from jtw and send them to Wordle to make a nice picture.

The code does this:
  1. gets an input word from the user
  2. retrieves collocations from the jtw API, using a JSONP request (using the jQuery.js library)
  3. transcodes the data returned into Wordle input, keeping the first 15 combinations
  4. injects the data into a Wordle form and submits the form
  5. which opens the Wordle App in a new window
Enjoy!