View Single Post
Old 12-21-2012, 11:13 AM   PM User | #6
guytrance
New to the CF scene

 
Join Date: Aug 2012
Posts: 9
Thanks: 12
Thanked 0 Times in 0 Posts
guytrance is an unknown quantity at this point
Hey guys.

Thanx for your help!

I Tried all kinds of variations and your suggestions but nothing seems to pull the data off that php file

Here are some options i tried:

Code:
function getCurrentTrack(){
	$.get('/player/readerPlayer.php', function (data){
	$track = $(data).find('track');
	$track.each(function (){
		$this = $(this);
		var title = $this.find('title').text();
		var listenersn = $this.find('listeners').text();
		$('.now_playing a').html(title).attr('href',url);
		$('.listeners span').html(listenersn);
		setTimeout(getCurrentTrack, 65000);
	});
}, 'xml')};

Code:
function getCurrentTrack(){
	$.get('/player/readerPlayer.php', function (data){
	$track = $(data).find('track');
	$tracks.each(function (){
		$this = $(this);
		var title = $this.find('title').text();
		var listenersn = $this.find('listeners').text();
		$('.now_playing a').html(title).attr('href',url);
		$('.listeners span').html(listenersn);
		setTimeout(getCurrentTrack, 65000);
	});
}, 'xml')};
Code:
function getCurrentTrack(){
	$.get('/player/readerPlayer.php', function (data){
	$tracks = $(data).find('tracks');
	$tracks.each(function (){
		$this = $(this);
		var title = $this.find('title').text();
		var listenersn = $this.find('listeners').text();
		$('.now_playing a').html(title).attr('href',url);
		$('.listeners span').html(listenersn);
		setTimeout(getCurrentTrack, 65000);
	});
}, 'xml')};
Code:
function getCurrentTrack(){
	$.get('/player/readerPlayer.php', function (data){
	$track = $(data).find('tracks');
	$tracks.each(function (){
		$this = $(this);
		var title = $this.find('title').text();
		var listenersn = $this.find('listeners').text();
		$('.now_playing a').html(title).attr('href',url);
		$('.listeners span').html(listenersn);
		setTimeout(getCurrentTrack, 65000);
	});
}, 'xml')};
I dont know why i cant see it. the code seems good to go for me.

(the data off php is outputted if i go to the php page on a browser so its not from their)
guytrance is offline   Reply With Quote