Showing RSS feed on a form


#1

Is there a way to show an RSS feed on a form in appStudio? I haven’t been able to find anything about it. I did find references to a sample .rss feed project, but it wasn’t listed in the Sample Projects.


#2

What feed are you trying to access?

Most feeds do not have the ‘Access-Control-Allow-Origin’ header is present, which means you’ll run into CORS issues.


#3

https://www.wired.com/feed/rss


#4

This should get you started:

Button1.onclick = function() {
  const FEED_URL = "https://www.wired.com/feed/rss";
  $.get(FEED_URL, function(data) {
    $(data).find("item").each(function() {
      const el = $(this);

      console.log("------------------------");
      console.log("title      : " + el.find("title").text());
      console.log("author     : " + el.find("author").text());
      console.log("description: " + el.find("description").text());
    });
  });
};

#5

Thanks! I’ll pass that on to the student team -

Cindy