Display contents of the <link rel=""> tag on the html page?

Asked

Viewed 808 times

2

I am trying to make an RSS reader, I searched and for that I used:

<link rel="alternate"  type="application/rss+xml" title="RSS" href="http://www.feedroll.com/rssviewer/feed2js.php?src=http%3A%2F%2Fwww.gsmfans.org%2Findex.php%3Ftype%3Drss%3Baction%3D.xml&num=25&desc=1&au=y&date=y&tz=-3&targ=y&utf=y&pc=y"> 

How do I display the content he read from this page on my page? That is, how to show the content of this page on my page?

  • You’re talking about something like a iframe?

  • Also, I want a way to display the news feed on the website page.. because it’s actually an app, so I used a script, but when I compile for wp it doesn’t work.. Only iframe has src.. he’s the one who’s not showing up when I compile

  • What you want is to read the rss feed from the link?

  • yes, but not src, because when compiling the project in visual studio it does not work

1 answer

1

How are you using this feed2js to grab the feed, and add on the page use the script that way:

<script language="JavaScript" src="http://www.feedroll.com/rssviewer/feed2js.php?src=http%3A%2F%2Fwww.gsmfans.org%2Findex.php%3Ftype%3Drss%3Baction%3D.xml&num=25&desc=1&au=y&date=y&tz=-3&targ=y&utf=y&pc=y"  charset="UTF-8" type="text/javascript"></script>

If you want to style the content see that the script generates a structure with ul’s and li’s.

  • I put it this way, it works in the computer browser, but when I create the same project in Visual Studio and compile as universal app it doesn’t work anymore

  • @lvcs How come it doesn’t work in VS? Could you explain what you want it to work on? It wouldn’t happen to be that question?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.