View Single Post
Old 09-11-2007, 12:52 AM   PM User | #4
rwedge
Regular Coder

 
Join Date: Feb 2005
Posts: 679
Thanks: 0
Thanked 16 Times in 15 Posts
rwedge is on a distinguished road
Quote:
Does Ajax need to read from a physical file in order to refresh the details?
It could be a PHP page that fetchs the song data and hands it off to the AJAX request or a simple txt file which is updated by a server side script.

How are you getting the radio server data?

If you set up a PHP file to fetch the song data you can pass the data directly to the request. If that is the case the url in the AJAX script would point to the PHP file.

Edit: Uncomment the alert for the error handling to see if an error is returned
Code:
alert('A ' + err.status + ' Error Occurred.\nError Message: ' + err.statusText);

Last edited by rwedge; 09-11-2007 at 05:13 AM.. Reason: alerts
rwedge is offline   Reply With Quote