I have a CSS-customized control, which is updated whenever a post-back happen. anyway, it affecting the buttons, link-buttons, image-buttons in which the buttons do not fire their supposed events but in the second click.
this is my JavaScript code….
(function () {
'use strict';
var init = function () {
var B = document.getElementById("hfProgress");
var slider2 = new rSlider({
target: '#slider2',
values: ['0.0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
range: false,
set: [B.value],
tooltip: true,
onChange: function (vals) {
}
});
};
window.onload = init;
})();
what can I do to make buttons fire in first click as usual?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
After sometime in diagnosis, i found that the button is on Autopostback.. I set this Autopostback to off and then it worked fine
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0