hmm, shouldn't you variable items_count, be used in lt(items_count)?
can't see where it's used in you script.

//Kristinn

On 2/22/07, John W <[EMAIL PROTECTED]> wrote:
>
> Just thought Id post the full deal (well the itty bitty jquery script) for
> anyone else that is looking for something similiar to put rss feeds in their
> website. the cool thing is that with the latest version of jquery this works
> with remote urls. In the past I had to grab the file locally on my domain.
>
> Have to give credit to Jim Davis since I found his post on the topic
> earlier.
> http://www.nabble.com/RSS-Feed-Reader---Re-visit-tf1915606.html#a5244340
>
>
> <HTML>
> <HEAD>
> <SCRIPT language=JavaScript src="jquery.js" type=text/javascript></SCRIPT>
> <SCRIPT language=JavaScript type=text/javascript>
>
> var html = '';
> // count for lines display
> var items_count = 10;
> // feed location
> var feed = 'http://rss.movies.yahoo.com/dvd/topsellers.xml';
> // replace url for link
> var u =
> 'mainitem.html?hdSearchType=Catalog&radCateg=DVD&selSearchOption=Begins&selSortType=descr&chkDetailView=off&txtSearch='
>
> $(document).ready(function(){
>   $.get(feed, function(xml){
>           $("item", xml).lt(10).each(function(){
>                   $(this).find("item").each(function(){
>                           html += "";
>                   }).end().find("title").each(function(){
>                           html += " " + u + this.text + " " + this.text + "
> <br>";
>                   });
>           });
>
>           $("#rss").html(html).slideDown("slow");
>
>   });
> });
>
> </SCRIPT>
> </HEAD>
> <BODY>
> <DIV id="rss">Loading...</DIV>
> </BODY>
> </HTML>
> --
> View this message in context: 
> http://www.nabble.com/specifying-count-for-rss-feed-display-with-each-function-tf3269015.html#a9091666
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to