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

Button not visible

before page show I want to keep button not visible.
I uncheck visible from properties.
after some process i want to make visible button with dynamic label
$("#buttion").show()

I use this but not working
may I know what is the way to make the button visible?

function ProcessYourData() {
available_points = parseInt(localStorage.getItem("local_available_points"));
total_items = parseInt(localStorage.getItem("local_total_items"));
if (available_points 0 && total_items 0) {
for (i = 0; i < total_items; i++) {
required_points = parseInt($('#Reward_reward_grid' + i).find("#Reward_required_points").val());
btn_reward = $('#Reward_reward_grid' + i).find("#Reward_btn_reward");
btn_reward.show();
if (available_points = required_points) {
btn_reward.css('background-color', '#BFD770');
btn_reward.attr("style", "width:150px;height:50px;background-color:#BFD770;border-radius:25px !important");
} else {
reward_more = parseInt(required_points) - parseInt(available_points);
reward_more = reward_more + " more check-in";
btn_reward.text(reward_more);
btn_reward.css('background-color', '#B5B4B5');
btn_reward.attr("style", "width:150px;height:50px;background-color:#B5B4B5;border-radius:25px !important");
btn_reward.attr("disabled", "disabled");
}
}
localStorage.setItem("local_available_points", 0);
localStorage.setItem("local_total_items", 0);

Code: Select all

 } 

}

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Button not visible

Hello!

Use this codepreAppery("buttonName")&#46;show();/prewhere buttonName - button component name

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

Button not visible

button is in a grid and bound with services
so name is same
that is doing on just first one
I need to apply on all cell

look at upper
btn_reward = $('#Reward_reward_grid_' + i).find("#Reward_btn_reward");
any way here

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Button not visible

Are there any errors in console when you run this code?

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

Button not visible

no

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Button not visible

Please check if this is executed pre" for (i = 0; i < total_items; i++) {"/preby adding alert(i); inside.

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

Button not visible

yes executing properly
problem with button

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Button not visible

Could you post app public link and steps how to reproduce this?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Button not visible

Deveu,

Is it the same application that you mention in another conversation?

Return to “Issues”