smfmetro10
asked on
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
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah, I was not near a real computer.
ASKER
Thank You So Much!