0

I have an RSS feed that is called using javascript. What I would like to happen is that the information gets displayed as html when you view source instead of the javascript.

Here's the javascript:

<script type="text/javascript" onload="$('div.rssBody').vTicker();">
$(document).ready(function () {
	$('#ticker1').rssfeed('http://feeds.bbc.co.uk/iplayer/highlights/tv',{}, function(e) {
		$(e).find('.homepageupdates').vTicker();

	});
});
</script>

<div id="ticker1"></div>

I'm guessing there is some php function that will be able to extract the info from this the source before the javascript gets to it.

Any help greatly recieved. Thank you

2
Contributors
4
Replies
7
Views
5 Years
Discussion Span
Last Post by cambraydesign
0

Right ok, I have a parser now and I'm using wordpress. The parser uses shortcodes so I now need to integrate the shortcode into the javascript.

The javascript code is the same as above and needs to have this short code in it:

[parse_feed feed="http://feeds.bbc.co.uk/iplayer/highlights/tv" num="8" ]

I have tried this:

<script type="text/javascript">
$(document).ready(function () {
	$('#ticker1').rssfeed(<?php echo do_shortcode('[parse_feed feed="http://feeds.bbc.co.uk/iplayer/highlights/tv" num="8" ]'); ?>,{}, function(e) {
		$(e).find('div.rssBody').vTicker();
	});
});
</script>

But this isn't working!

Thanks for any help anyone can give. Thanks for the parser suggestion too!!

0

This plugin only gets the title from the feed whereas the other feed get the date and the first part of text in each feed article. But that is what I'm trying to achieve!! Thanks for your help!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.