How to increment pages on scroll when extracting data from JSON?


I have an url that returns JSON data but in pages. I have seen with REST Easy in Firefox that I have 29 pages, and on every page I have 10 objects. My ajax code looks like this:

type: 'POST',
url: url,
dataType: 'json',
data: {
page: 1
crossDomain: true,
success: function (data)
$(data.content).each(function (index, value) {
//extracting the data

When I put in data: {page:1} or any other number, it extracts me the objects just from that page, and I need help with figuring out how I can extract the data from all the pages. When I scroll to the end of the data extracted from first page, data from second page should load and so on.. Any ideas?


have you completed the jquery and ajax assignment

please check and help