I'm having trouble using remote xml feeds. In this example, I'm trying
to get product id's from drugstore.com's xml feed. Looking at my
console log in Firebug... my get function isn't working.

<script type="text/javascript">

$(function(){
   $.get('http://xml.drugstore.com/xml.asp?
c=10&b=&k=&SORT=&filter=&type=topsellers&trx=xml&trxp1=10&f=xml', {},
function(xml) {
      console.log('successfully got xml feed');
      $('Details',xml).each(function(i){
         productID = $(this).find('ProductID').text();
         console.log(productID);
      });
   });
});

</script>

Reply via email to