RANDOM QUOTE
In politics stupidity is not a handicap.

-Napoleon Bonaparte
Search
Sticky Posts
The Ghettotenna
SVG Icons
KNetworkLED
Brew Your Own Damn Beer
Latest Comments
linkapalooza (5 comments)
Objects in the Mirror (4 comments)
Doo Dah Doo Doo Doo Dah Dah Doo... Big News Coming Your Way!!!!!!!!!!!!!!!!!!!!!!!!!!! (3 comments)
SVG Icons (7 comments)
A Revolution in Taco Consumption (5 comments)
Links & Friends
Reddit
Kotaku
Hardgeus
PVP Online
Boing Boing
The Sneeze
Penny Arcade
Resources
glitch13.com :.::.: ..:.::. :.:::... Home | About | Feedback | Archive | RSS

AJAX-IFIED NETFLIX QUEUE
Category: Tech
Saturday, January 21st, 2006 @ 05:56 pm
Posted By Brent

Some time ago I wrote a little PHP script to pull my "Recent Activity" RSS feed from Netflix and then try to glean what movies I currently had at home. The "Recent Activity" feed is an xml feed of what movies have been shipped to you and which ones have been received back at Netflix HQ. By cross-referencing which ones have been shipped but not received back I can figure out which ones I currently have. There is a small problem: the feed only contains five items so if you keep one movie at home and receive and send back two movies, the reception of the movie you still have is out of the feed and drops off my list.

Well, that problem still exists. This post isn't about how I fixed that. This post is about how, with the magic of AJAX (via the SAJAX library), I recently updated it with a little functionality to show my entire queue underneath it without reloading the page.

As it stands now I'm pretty sure it will only work in Mozilla/Firefox and Internet Explorer. I tried it in Konqueror but the absence of the DOMParser to handle navigating the XML feed, it ain't working.

Some of you may or may not have heard about AJAX, and some of you may be wondering what it actually is. It stands for "Asynchronous Javascript And XML." The quick and dirty of it is this: it uses the newer browsers' ability to reconnect to a webserver and pull new data while the page is live in your browser, without reload. The XML is there simply because it's an easy way to pull a rich dataset when you only have the ability to interchange text.

So that's it, look for it over there on the sidebar right underneath my Netflix queue thingy. I know it doesn't seem that amazing, but I thought it was pretty cool for my first foray into the new buzz in the Interweb world. That's how I roll, Web 2.0 style biatch.

If anyone's interested in the code just drop me a line and I'd be happy to scoot it off to ya. I'm not going to promise it's pretty to look at, but it works.




Comments

NAME: Feasty
Monday, January 23rd, 2006 @ 06:05 pm
Man, you know I love ya. I couldnt help myself on that one=)


NAME: brent
Monday, January 23rd, 2006 @ 08:33 am
You're a dick.


NAME: Feasty
Sunday, January 22nd, 2006 @ 10:50 pm
dude get me that code asap.




NAME:
EMAIL: *OPTIONAL*
WEBSITE: *OPTIONAL*
WEBSITE: *OPTIONAL*
Comment:
    
|