Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Issue: SliderExtender creates multiple tags in body when enclosed in an updatepanel [27270]

$
0
0
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.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>