Hi,
The following function is working fine in IE but the sliders are not displayed in Chrome or Firefox.
If I replace "var MyAmount = slider1.get_value();" by "var MyAmount = "1000" and the same for "var MyDuration" all is perfect.
Is it a known issue ?
Any idea about how to fix that problem to make it works in all the browsers ?
Thanks for your support ...
Herve
The following function is working fine in IE but the sliders are not displayed in Chrome or Firefox.
If I replace "var MyAmount = slider1.get_value();" by "var MyAmount = "1000" and the same for "var MyDuration" all is perfect.
Is it a known issue ?
Any idea about how to fix that problem to make it works in all the browsers ?
Thanks for your support ...
Herve
function RefundRange() {
var slider1 = $find('<%= RsAmount.ClientID %>');
var MyAmount = slider1.get_value();
var slider2 = $find('<%= RsDuration.ClientID %>');
var MyDuration = slider2.get_value();
var MiniRefund = Math.round((((MyAmount * 7) / 100) + MyAmount) / MyDuration);
var MaxiRefund = Math.round((((MyAmount * 14) / 100) + MyAmount) / MyDuration);
SpanMiniRefund.innerHTML = "CHF " + MiniRefund + ".-";
SpanMaxiRefund.innerHTML = "CHF " + MaxiRefund + ".-";
}