> I pulled this from a website and modified it to work on mine. I'm > using jQuery 1.3.2, btw... > For the life of me, i cannot get it to pull the xml data from > getstream.aspx. if you open it up in a browser, it shows as perfect > xml. If i parse it with straight php, it works, but i want to use the > jQuery Library with an ajax refresh. > > Am I screwing something up, or is there something I don't know about > when using a website source vs. a local source. > $.ajax({ > type: "GET", > url: > "http://yp.krushradio.com/getstream.aspx?stream=stream", > dataType: "xml", > success: function(xml) { > > $(xml).find('activesong').each(function(){ > var stream = > $(this).find('servername'); > var title = > $(this).find('songname').text(); > var genre = > $(this).find('servergenre').text(); > $('<div > class="TrackListing"></div>').html(stream+'<br>'+title > +'<br>'+genre+'<br>').appendTo('#page-wrap'); > }); > } > }); > });
Is krushradio.com the same site that has this html page on it? AJAX cannot be used in an x-domain environment - browser security prevents it. Are you using Firefox/Firebug? Do you see errors in the console?