Search and Top Navigation
#5206 closed bug (notabug)
Opened February 20, 2010 11:12AM UTC
Closed February 20, 2010 08:31PM UTC
Last modified October 11, 2012 09:15PM UTC
__doPostBack in change event of slider
| Reported by: | supradip_d | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | ui.slider | Version: | 1.7.2 |
| Keywords: | slider postback | Cc: | |
| Blocked by: | Blocking: |
Description
Hi all,
I am integrating the slider control with Range=true in ASP.NET. In which I need to postback the page in the change event of the slider. So, to accomplish that I have tried the following:
<script type="text/javascript">
$(function() {
$("#slider_demo").slider({
range: true,
min: 0,
max: 100,
step: 0.1,
values: [document.getElementById('amt_1').value, document.getElementById('amt_2').value],
slide: function(event, ui) {
$("#amt_1").val(ui.values[0]);
$("#amt_2").val(ui.values[1]);
},
change: function(event, ui) { __doPostBack("btn_demo", ""); }
});
$("#amt_1").val($("#slider_free").slider("values", 0));
$("#amt_2").val($("#slider_free").slider("values", 1));
});
</script>
and in the body segment there is a div having ID - slider_demo, along with two text-boxes - amt_1 and amt_2 accordingly. and a button named btn_demo. After doing all those things when I am trying to debug the code I found that it is doing the post back call but the structure of the slider become topsy - tervy and become non- functional as well.
Please let me know if there is any solution regarding this.
Thank You.
Please ask for help on the forum.