dpla/hackathon — pull request #1 by ao5357 (2012-03-30 14:04:15+00:00)
Title: jQuery search form in example

Added the adapted search form script from Nate Hill and I. Output to plain JSON.

This is efficient and fairly future-resistant jQuery. It uses object caching to reduce the cost of selecting/building jQ objects. It uses .on(), which is the jQuery-recommended event listener. The DPLA API is [very partially] defined by the form elements themselves, so the form can be directly serialized. getJSON() uses the jQ1.8+ recommended methods for handling a jqXHR object (done, fail, always). Good old form practices and markup semantics.