MACourtney7 MACourtney7 - 4 months ago 7
HTML Question

Simple JavaScript not displaying correctly

I have some simple JavaScript in three divs:

<div class = "bbc">
<script type="text/javascript"
src="http://output81.rssinclude.com/output
type=js&amp;id=857232&amp;hash=8ea1a6373cb556ad71ecb072bed32932">
</script>
</div>
<div class = "uefa">
<script type="text/javascript"
src="http://output33.rssinclude.com/output
type=js&amp;id=859685&amp;hash=2142c0f49e8b94bc63f569ab271fabb0">
</script>
</div>
<div class = "sky">
<script type="text/javascript"
src="http://output39.rssinclude.com/output
type=js&amp;id=859678&amp;hash=8b9f8b0ffa4c7cdf100d093ba0f0f630">
</script>
</div>


It displays fine in Safari:

Safari

Other browsers (tried Chrome & Firefox):

Chrome

They are simply generated by rssinclude.com so I'm not sure what's stopping them from working.

What is the likely cause of the problem?

Many thanks,

Answer

Just try open the links and you'll see, that none of the url are valid.

The "&amp;" is an html code, which replaces an "&" char. After output there have to follow an "?" char for parameters. Try these url's:

<div class = "bbc">
    <script type="text/javascript"
        src="http://output81.rssinclude.com/output?type=js&id=857232&hash=8ea1a6373cb556ad71ecb072bed32932">
    </script>
</div>
<div class = "uefa">
    <script type="text/javascript" 
        src="http://output33.rssinclude.com/output?type=js&id=859685&hash=2142c0f49e8b94bc63f569ab271fabb0">
    </script>
</div>
<div class = "sky">
    <script type="text/javascript"
        src="http://output39.rssinclude.com/output?type=js&id=859678&hash=8b9f8b0ffa4c7cdf100d093ba0f0f630">
    </script>
</div>