Skip to content Skip to main navigation Report an accessibility issue

Feed2JS message displaying on your website?

Is your website displaying a message below your UT Knoxville events feed from a 3rd party service called Feed2JS? It looks like this:



If the answer is yes, don’t fret because here’s the fix:

  1. Copy and paste The Script (see below) into the head of your HTML document (between <head> and </head>).
  2. Copy The String (see below).
  3. Paste The String where RSS-URL-HERE is located in the The Script (between <head> and </head> in your HTML document).
  4. Go to the events calendar RSS page, ignore the Locations checkboxes, and click your category’s checkbox. Copy the last two digits in the RSS URL. In the example below, the last two digits are 31:
    RSS screencap

    Screen capture of events calendar RSS page. The two-digit RSS feed number is 31.


  5. Paste these last two digits of the RSS URL where 2-DIGIT-RSS-NUMBER is located in The Script (between <head> and </head> in your HTML document).
  6. Find The Feed2JS (see below) code in your HTML document.
  7. Delete The Feed2JS code.
  8. Copy The New HTML (see below).
  9. Paste The New HTML where you deleted The Feed2JS code in your HTML document.
  10. Save the HTML document and upload.
  11. Voila! The message has disappeared! (Let us know at webteam@utk.edu if you have any problems)

The Script


<script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAAPrxZwyLH1quGPzcQTSnt2xRO9V8f_wvZ8Pu_Kp1GhO5Ipa7J1hQqfY_snZQNW_9WZZCcW6D_cJ_fSw"></script>
<script type="text/javascript">


google.load("feeds", "1");

function OnLoad() {
var feed = new google.feeds.Feed("RSS-URL-HERE");
feed.setNumEntries(10);
feed.includeHistoricalEntries();
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("feed");
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var li = document.createElement("li");
var a = document.createElement("a");
var url = entry.link;
a.appendChild(document.createTextNode(entry.title));
a.setAttribute('href', url);
container.appendChild(li);
li.appendChild(a);
}
}
});
}
google.setOnLoadCallback(OnLoad);
</script>

The String

http://www.utk.edu/events/rss/feed.php?l=2-DIGIT-RSS-NUMBER

The Feed2JS

<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.utk.edu%2Fevents%2Fevents%2Frss%2F%3Fl%3D47&num=3" type="text/javascript"></script>

<noscript>
<a href="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.utk.edu%2Fevents%2Fevents%2Frss%2F%3Fl%3D47&num=3&html=y">View RSS feed</a>
</noscript>

The New HTML

<ul id="feed"></ul>