This is me once again as i got some error in previous question in the code. So asking this question once again. This is a code from phonegap app from index html page. I don't know how to get only 4 result from database at each page when a sqlite query processed? Also I want to add next page button. When clicking on this button next 4 result from database should come. This is code.function querySuccess(tx, results){ var len = results.rows.length; var output = ''; for (var i=0; i<len; i++){
output = output + '<li id="' + results.rows.item(i).id + '">' + results.rows.item(i).list_action + '</li>'; } messageElement.html('<p>There are ' + len + ' items in your list:</p>'); listElement.html('<ul>' + output + '</ul>');
dimanche 10 mai 2015
how to display only 4 result in each page using html & sqlite
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire