Ajax replacement for auto-updating iFrame

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2007
Posts: 10
Reputation: djMot is an unknown quantity at this point 
Solved Threads: 0
djMot's Avatar
djMot djMot is offline Offline
Newbie Poster

Ajax replacement for auto-updating iFrame

 
0
  #1
Oct 17th, 2008
I'm looking to replace an auto-updating iFrame with some cooler, and more accurate ajax code. And first off I'll say that I believe ajax is the right way to approach this, but I'm open to suggestions, too. I'm not really much of a javascript/ajax programmer, hence I'm hoping for a little guidance here. Being an MCSD, I do understand and can read code and pseudo-code.

The website where this is needed is an internet radio station. The auto-updating iFrame shows what song is currently playing. It's best if you just see it, so please feel free to visit Girls Rock Radio and notice the "Now Playing" section of each page at the site on the right side of the page, below the title graphic and nav bar.

The iFrame displays a page that auto-refreshes every 90 seconds. That works out pretty well, and it seems to update frequently enough to make it seem that it's keeping pretty constant track with the actual song change, even though it's really not.

Behind the scenes, the radio station automation software is updating a file on the web server precisely when the song changes. I can control what information goes into that file, like artist, song title, album, year, genre, filespec to the album art, etc... Pretty much anything that's in the database about that song. What I may NOT be able to enter into that file is something outside of the database - the time the song just started playing, for instance - which would be valuable to know in this situation. But I do have the date/time the file was updated from the servers file system, so I'm no worse for the wear, I guess.

Song length is in the database, so some math based on file date/time and song length should be able to produce the next update file read.

Can anyone help me with some ideas on how to handle an auto-updating ajax replacement for the existing auto-updating iFrame?

Thanks!
Girls Rock Radio - Playing the most awesome contemporary Pop, Rock, & Alternative music from today's All-Girl and Girl-Fronted bands! TUNE IN TODAY !! How about right now?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC