Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread John W
My mistake. I hard coded the value in the code I pasted by accident. this: $("item", xml).lt(10).each(function(){ should be $("item", xml).lt(items_count).each(function(){ Kristinn Sigmundsson wrote: > > hmm, shouldn't you variable items_count, be used in lt(items_count)? > can't see wher

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread Kristinn Sigmundsson
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 similia

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread John W
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 do

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread John W
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 do

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread John W
Ahh I see. THank you guys this really helps. Jquery is great. Karl Swedberg-2 wrote: > > Hi John, > > It works just like a "for" loop. You can put the "i" in the anonymous > function argument for .each(). For example: > > $('p').each(function(index) { >alert('This is paragraph number

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread Kristinn Sigmundsson
you can use the .lt() command before the .each to narrow the results, so if you want the first 10, you would use something like $(this).lt(10).each... //Kristinn On 2/21/07, john smith <[EMAIL PROTECTED]> wrote: > Sorry all Im still a newb to jquery. Ive been messing around with using > jquer

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread Karl Swedberg
Hi John, It works just like a "for" loop. You can put the "i" in the anonymous function argument for .each(). For example: $('p').each(function(index) { alert('This is paragraph number ' + index); }); (I used "index" instead of "i" because I'm kind of dense, and it helps to remind me wha

[jQuery] specifying count for rss feed display with each function

2007-02-21 Thread john smith
Sorry all Im still a newb to jquery. Ive been messing around with using jquery for grabbing and displaying rss feed info. A lot less code then using straight javascript. what Im not quite clear on is how you grab a specific count from doing an .each For example if I grab a feed with the jquery