php - $.get not returning any data in Internet Explorer -


i'm using jquery's $.get function fetch twitter feed , display on site. have no idea why seems not getting data (i.e. code inside function(d) { ... } doesn't called). works fine in else i've tried. have used code before no problems, thing can think of is running through https.

(note example i've removed twitter user id feed url)

js:

    $.get('proxy.php?url=http://twitter.com/statuses/user_timeline/999999999.rss', function(d) {             $(d).find('item').each(function() {             var theitem = $(this);             var title = theitem.find('title').text();               var date = new date(theitem.find('pubdate').text());             var alink = theitem.find('link').text();              // code ommitted (inserts tweet page)         });   }); 

proxy.php:

<?php     // php proxy     // loads xml location. used flash/flex apps bypass security restrictions     // author: paulo fierro     // january 29, 2006     // usage: proxy.php?url=http://mysite.com/myxml.xml      $session = curl_init($_get['url']);                    // open curl session     curl_setopt($session, curlopt_header, false);          // don't return http headers     curl_setopt($session, curlopt_returntransfer, true);   // return contents of call     $xml = curl_exec($session);                            // make call      $seconds_to_cache = 300; // 5 mins (60 * 5)     $ts = gmdate("d, d m y h:i:s", time() + $seconds_to_cache) . " gmt";     header("expires: $ts");     header("pragma: cache");     header("cache-control: maxage=$seconds_to_cache");     //header("content-type: text/xml");   // set content type appropriately     header("content-type: application/rss+xml");     echo $xml;        // spit out xml     curl_close($session); // , close session ?> 

any ideas / appreciated

figured out. ie needs content type set text/xml. changed proxy.php script:

header("content-type: text/xml"); 

and needed.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -