iTunes 10 Most Recent
My iTunes "Recently Played" list is the new addition to the sidebar on my web page.
Verizon doesn't provide any server-side scripting with their web-page hosting service, so I'm using client-side JavaScript (i.e. XMLHttpRequest) to do the job. I run a Python script every hour (using XP's schtasks feature) to query iTunes for its recently played files, reformat it into HTML, and send the file via FTP to my website. The client-side Javascript in my Blogger template grabs the HTML and injects it into the webpage in the appropriate spot. And there you go.
I've tested it under IE and Firefox, and it works fine. I'll have to wait for feedback from my readers -- one reader in particular -- about other browsers.
Verizon doesn't provide any server-side scripting with their web-page hosting service, so I'm using client-side JavaScript (i.e. XMLHttpRequest) to do the job. I run a Python script every hour (using XP's schtasks feature) to query iTunes for its recently played files, reformat it into HTML, and send the file via FTP to my website. The client-side Javascript in my Blogger template grabs the HTML and injects it into the webpage in the appropriate spot. And there you go.
I've tested it under IE and Firefox, and it works fine. I'll have to wait for feedback from my readers -- one reader in particular -- about other browsers.

3 Comments:
Opera looks fine... tomorrow I'll test under Konqueror and let you know. Funny, as popular as AJAX oriented (XMLHttpRequest) is right now, I've not bothered to do any of it. I guess part of it is that I haven't figured out a cool use for it since I do have server side scripting capability. Probably the coolest thing would be for a picture viewer.
By
ScW, At
3:04 AM
Okay... no issues in Konqueror. Looks just fine. That would pretty much assure you that Safari should work fine as well. Although don't you have a Mac at work now?
On a side note, "Freedom Overspill" is awesome.
By
ScW, At
11:49 AM
No Mac on my desk yet. Things don't move fast with the gov't. :)
By
Brandon Corfman, At
12:05 PM
Post a Comment
<$I18N$LinksToThisPost>:
Create a Link
<< Home