Is that your website?

It might be that on the server side, the access to some pages are not
allowed if the HTTP_REFERER header is from another website.
Try to set the HTTP_REFERER of the AJAX request to an empty string.

On Feb 27, 6:19 am, KrushRadio - Doc <drega...@gmail.com> wrote:
> Hey guys,
>
> I'm a bit new to JQuery, but from what i've read, it's the end all to
> xmlhttprequests.
>
> 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.
>
> ~Doc
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
>         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
>         <link rel="stylesheet" type="text/css" media="all" href="style.css" /
>
>         <script type="text/javascript" src="jquery.js"></script>
>         <title>Reading XML with jQuery</title>
>      <script>
>         $(document).ready(function(){
>                         $.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');
>                                         });
>                                 }
>                         });
>                 });
>      </script>
> </head>
> <body>
>         <div id="page-wrap">
>         <h1>Reading XML with jQuery</h1>
>      </div>
> </body>
> </html>

Reply via email to