HTML5: Download content (script) by clicking on a page and running it.

Asked

Viewed 556 times

0

How do I download a script that is automatically online each time I click to open a certain page? and add it to the page

I’m trying to make an app and some pages have read feeds, but at the time I compile with Visual Studio, the app does not load the online script (nor the source used)..

Code I’m trying to:

<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>
  • This URL that is in the attribute src leads to a Javascript file? ps: The attribute language is deprecated long time. If you are using HTML5 the attribute type is unnecessary.

  • Are you previewing in the application itself? If you are, I suggest testing in the browser itself.

  • It leads to the site rss which is a javascript, I used a tool to do this, as it is easier.. I’m on Html5, I had already removed, is that I took this excerpt from a previous project...

  • Yes, in the application itself, because in the browser (from the pc) it works, and there is no way to test in the browser of the smartphone because it is not an internet domain.. Hence when I compile the project in Visual Studio it no longer works this command

No answers

Browser other questions tagged

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