I am using jquery mobile and phonegap.
Here is my json result set getting from server and put into the global variable.
var categoriesArr = [
{
"Categories": "Bengali Products",
"desc": [{"code":"40740","product":"Alphonso Mango Jam 300 Gms","rate":"54.00"}]
},
{
"Categories": "Beverages (Town)",
"desc": [{"code":"40011","product":"Badam Powder 100grams","rate":"30.00"}]
}
];
If you click on one category, it will show the category description(desc) which contain more than 100 records.
Using this result set, how to paginate(10 per page) the categories in list view.
Your question is kind of vague – is this what you need?
I log the results to the web console, but please feel free to do whatever you wish.
To paginate you should look at FilamentGroup’s Mobile Pagination Plugin
Edit After Your Comment
Do you mean the desc arrays contain more than one element, a la:
If so, iterate over the desc array instead of assuming zero index: