http://docs.appery.io/tutorials/build...
Hi , I triying to set the limit of page to 1 but the next button is unable to work.
http://docs.appery.io/tutorials/build...
Hi , I triying to set the limit of page to 1 but the next button is unable to work.
Previous Button Javascript Code
var skip = parseInt(localStorage.getItem('skip'));
var limit = parseInt(localStorage.getItem('limit'));
var total = parseInt(localStorage.getItem('total'));
if (limit + skip 0){
localStorage.setItem('skip', skip-limit);
get_states.execute({});
if (skip - limit == 0){
Appery('buttonPrevious').hide();
}
if (skip - limit < total - limit ) {
Appery('buttonPrevious').show();
}
}
Next button Javascript Code
var skip = parseInt(localStorage.getItem('skip'));
var limit = parseInt(localStorage.getItem('limit'));
var total = parseInt(localStorage.getItem('total'));
if (limit + skip < total){
localStorage.setItem('skip', limit+skip);
get_text.execute({});
}
if (limit + skip == limit) {
Appery('buttonPrevious').show();
}
if (limit + skip == total - limit) {
Appery('buttonNext').hide();
}
Hi David,
oN Previous button you use:
pre
get_states.execute({});
/pre
But in Next button you are using:
pre
get_text.execute({});
/pre
Please check it out and edit with right datasource name.
Sorry to trouble you again, I want to redirect to another page in javascript but i not sure how.. can you help me on this?
Hello!
This should help http://docs.appery.io/documentation/j...