Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Reading RSS with JQuery

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #42036
    TWG
    Participant

    I have an RSS feed that I want to read using JQuery and take the data and populate a list with. Can anyone give me a shove in the right direction?

    #121197
    Mottie
    Member

    Maybe check out the [jQuery Google Feed Plugin](http://jquery.malsup.com/gfeed/) (you don’t need an API key anymore)

    #122352
    rosspenman
    Participant

    RSS is just XML, so you should be able to use [jQuery’s XML capabilities (`$.parseXML()`)](http://api.jquery.com/jQuery.parseXML/).

    Then you can navigate it just as you would any other DOM.

    #122577
    margaux
    Participant

    Would you consider using php to do this?

    #122616
    rosspenman
    Participant

    You can do it with `$.parseXML()`.

    Example:

    $.ajax(“rss_url”, function(rss) {

    xml = $.parseXML(rss);
    $(xml).find(“item title”).each(function() {

    $(“ul”).append($(“

  • “, {html: $(this).html()}));

    });
    });

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.