When a SliderExtender is initialized it creates a <DIV> tag within the body of the HTML document using this function (in sliderBehavior.js:
_initializeDragHandle : function() {
var dh = this._dragHandle = document.createElement('DIV');
dh.style.position = 'absolute';
dh.style.width = '1px';
dh.style.height = '1px';
dh.style.overflow = 'hidden';
dh.style.zIndex = '999';
dh.style.background = 'none';
document.body.appendChild(this._dragHandle);
},
If the slider is enclosed within an UpdatePanel control the slider is re-initialized on every async callback which creates another <DIV> in the body.
Please consider giving the DIV an ID so you can check for and re-use it should it already exist after returning from an async callback. Alternately perhaps it could be added to the TextBox's parent update panel DIV (should one exist).
Thanks!
Comments: Thank you for your suggestion! We will keep it in mind during our future work.
_initializeDragHandle : function() {
var dh = this._dragHandle = document.createElement('DIV');
dh.style.position = 'absolute';
dh.style.width = '1px';
dh.style.height = '1px';
dh.style.overflow = 'hidden';
dh.style.zIndex = '999';
dh.style.background = 'none';
document.body.appendChild(this._dragHandle);
},
If the slider is enclosed within an UpdatePanel control the slider is re-initialized on every async callback which creates another <DIV> in the body.
Please consider giving the DIV an ID so you can check for and re-use it should it already exist after returning from an async callback. Alternately perhaps it could be added to the TextBox's parent update panel DIV (should one exist).
Thanks!
Comments: Thank you for your suggestion! We will keep it in mind during our future work.