deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

hide old data when loading page

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

hide old data when loading page

Hello,

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

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

hide old data when loading page

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(""); 

}

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

hide old data when loading page

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

Return to “Issues”