Page 1 of 1

hide old data when loading page

Posted: Mon May 19, 2014 5:09 am
by deveu

I have few page repeated for various customer.
with the page show event I am binding incoming data
when cycle is completed and starting new page before loading new data that is showing previous data for a while.
I want to stop showing previous data at all.
I used hide and and made label empty but still problem
let me know a way


hide old data when loading page

Posted: Mon May 19, 2014 6:32 am
by Evgene Karachevtsev

Hello,

You can make labels empty with this code: Appery("labelName").text("");


hide old data when loading page

Posted: Mon May 19, 2014 7:40 am
by deveu

I did this
i call a jquery function
at the beginning of page load by "page show" event
and i am calling the the function with a button from another page to to clear everything to come this page
but still problem
showing first time entering phone no for a while then being reset

function reset_data() {
Appery("input_phone_no").val("");
Appery("btn_logout").hide();
Appery("btn_no_redeem").hide();
Appery("lbl_welcome_message").text("Welcome!");
Appery("lbl_status").text("");

Code: Select all

 Appery("lbl_thank").text(""); 
 Appery("lbl_thank_reward").val(""); 
 Appery("btn_confirm").hide(); 
 Appery("mobileheader_thank_you").hide(); 
 Appery("mobilefooter_thank_you").hide(); 

 Appery("lbl_center_message").text(""); 
 Appery("lbl_center_message").hide(); 
 Appery("btn_logout").text(""); 

}


hide old data when loading page

Posted: Mon May 19, 2014 9:11 am
by Evgene Karachevtsev

Let's try running your reset function when you leave the page with entered values.