I'm using PeriodicalUpdater to update content on a page, and that
works well.

But I'm trying to launch an external audio player with a stream URL at
the same time I load the page with the PeriodicalUpdater on it (which
shows what's playing on the audio stream).  Whenever I add the
window.location.href in, the PeriodicalUpdater stops updating.
Commenting out window.location.href in the script and it starts
working again.  Same behavior in Prototype 1.5 and 1.6.

new Ajax.PeriodicalUpdater('dynamicarea', '/myurl.html', {
   method: 'get', frequency: 60, decay: 1});

window.setTimeout("startStream(streamID);", 1000);

function startStream(location)  {
        var newlocation  = '/' + location + '.pls';
        window.location.href = newlocation;
        }

What I'm trying to accomplish is this:

Send someone to a URL which will update automatically a div once a
minute, and also after they get to that page, open a URL which will
launch the external audio player.

Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to