asp.net - AjaxToolkit SliderExtender generates JavaScript exceptions in IE11 -
i'm using ajaxtoolkit:sliderextender
in updatepanel
so:
<asp:updatepanel id="upslideshow" runat="server"> <contenttemplate> <asp:textbox id="txtslidebackgroundopacity" runat="server" readonly="true" tooltip="adjust opacity of background (0 transparent, 100 opaque)" ontextchanged="txtslidebackgroundopacity_textchanged" autopostback="true" /> <br /> <asp:textbox id="txtopacityslider" runat="server" /> <ajaxtoolkit:sliderextender id="seslidebackgroundopacity" runat="server" targetcontrolid="txtopacityslider" boundcontrolid="txtslidebackgroundopacity" /> </contenttemplate> </asp:updatepanel>
works fine in edge, firefox, , chrome, generates following exception in ie11:
0x800a139e - javascript runtime error: sys.argumentoutofrangeexception: value must integer.
from this post looked @ compatibility settings, , this post i've tried various combinations of <meta http-equiv="x-ua-compatible" content="..." />
tag...anything below ie=11
breaks other things in site , ie=11
, ie=edge
both give me exception.
i created clean asp.net webforms project see if isolate problem, slider works in project, there's setting in project that's causing problem. ideas should start looking? thanks.
i have workaround. in debugger can see javascript throwing exception. so, use justin's code this post detect whether client ie...if is, following:
(function () { // if we're running internet explorer, need fix 1 of internal routines allow sliderextender control work var nieversion = internetexplorerversion(); if (nieversion && nieversion <= 11) { var originalsetlocation = sys.ui.domelement.setlocation; sys.ui.domelement.setlocation = function (element, x, y) { originalsetlocation(element, math.floor(x), math.floor(y)); } } }());
it still know why i'm getting exception in production code not in clean project, @ least i'm working.
Comments
Post a Comment