Skip to Main Content
MooTools 1.3 Cookbook
book

MooTools 1.3 Cookbook

by Jay L Johnston
July 2011
Intermediate to advanced content levelIntermediate to advanced
276 pages
5h 11m
English
Packt Publishing
Content preview from MooTools 1.3 Cookbook

Querying Mr. Clean's MP3 list!

Once our MP3 list gets too long to manage, users will desire a means of sorting through the rubbish and finding only the really good tunes.

Getting ready

This recipe launches off the work we accomplished in the previous recipe. Be familiar with that and then watch for the query data to be sent to the server-side script below.

How to do it...

There is but one small change here; it only adds a few lines of code. We grab the value of the input box and pass it as the optional argument. The server-side script then cleans this value, and uses it in a matching glob to find files like that string:

function send_query() { // prepare the data to send var el = $('mp3_query'); data = {'mp3_query':el.get('value')}; // make the actual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Web Performance

Jump Start Web Performance

Craig Buckler

Publisher Resources

ISBN: 9781849515689Other