views:

75

answers:

0

I'm trying to use jfeed to grab track names from bbc radio audioscrobbler style recently playing feeds, see http://ws.audioscrobbler.com/2.0/user/bbcradio2/recenttracks.rss
for an example.

Using the example.html that comes with Jfeed, the following works correctly on my local system (Win7). However, when I call the exact same script within a Firefox add on, alert never gets hit.

jQuery(function() { jQuery.getFeed({
url: 'jfeed/xml/test.xml', success: function(feed) { alert("Made it, all good.");
}
}); });

Where test.xml is a local copy of the feed xml from the audioscrobbler. The Firefox addon and example.html page reside in the same directory. jQuery is included with the addon after following the advice in this question http://stackoverflow.com/questions/491490/how-to-use-jquery-in-firefox-extension. There are no js errors or warnings.

I must confess, this is only my first week of js/Firefox development.

Is there any reason why the same script would fail from within the plugin, but work fine when called from inside a page? Am I missing something in the plugin config? Is using jFeed even the right approach to my problem?