How do you get and show the total count from a json call

Hi,

I have some javascript that scrapes a youtube channel and displays the videos on a webapage.  It displays 9 at a time with a "show more videos button.

 Is it possible to have a total count so there could be a display that read something like "showing 1-9 out of 50" then when the user hit the "load more" button it would read "showing 1-18 out of 50"?

I have included the code for better clarification and you can see the working copy at:
http://thelocalized.com/fancybox/
 
Thanks!
index.html
smfmetro10Asked:
Who is Participating?
 
leakim971Connect With a Mentor PluritechnicianCommented:
data.feed.openSearch$totalResults.$t return the global nbumber of feeds

Test page : http://jsfiddle.net/X2Fea/2/
0
 
Michel PlungjanIT ExpertCommented:
If the api provides that number the answer is yes. So you need to look in the documentation  or look at the returned Json if they already include it
0
 
Michel PlungjanIT ExpertCommented:
Yeah, I was not near a real computer.
0
 
smfmetro10Author Commented:
Thank You So Much!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.