In my ongoing quest to:
a) get my Facebook music annotation game "Herd It" running and
b) master all web technologies,
this week, I taught myself how to write AJAX apps.
Despite all the buzz I'd heard about this, AJAX is really just one JavaScript function call: XMLHTTPrequest. Basically:
HTML web page has JavaScript
JavaScript has XMLHttpRequest object
XMLHttpRequest object sends requests to a server script (e.g., PHP)
Server responds with XML info
XMLHttpRequest updates to the DOM as it gets new info.
Easy, right?!
I've used this to integrate the iLike API as the music player for Herd It. Now I can play all the (30-second clips of) music we want and not get sued!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment