On Nov 18, 7:46 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
> Does anyone know how to use the _IG_FetchFeedAsJSON method to get the
> total number of entries in a feed....for example if it was a feed for
> a blogger blog, and that blog has a total of 140 entries, how would
> you get the number 140 to put into a variable? After googling, the
the _IG_FetchFeedAsJSON function returns a maximum of 100 entries from
any feed. So, if your feed is larger, the function will truncate your
array of entries.
> closest to an answer i could find is:
>
> var total = parseInt(feed.openSearch$totalResults.$t,10);
>
> where feed is the object that is returned by _IG_FetchFeedAsJSON.
> However, I've tried this and it gives me a null!
Not sure where you got this but it looks like it has perl or PHP mixed
in with the javascript. Where do the variables $totalResults and $t
come from?
> Please help as I've tried everything and am at my wit's end!!!
var total = feed.Entry.length;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---