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
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
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
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
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
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
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
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