Problem: Get javascript error upon using an instance of the WebImageViewer Infragistics control with IE 8 browser and compatibility turned off.
Browser: Internet Explorer 8 with compatibility turned off; if I turn compatibility on, I get no javascript error.
Infragistics Version: 10.3
Description:
Upon using the VisualStudio 2008 debugger, I am finding a javascript error (the 'contentArea' varaible is set to null upon trying to get its offsetWidth) on the final line of the following Infragistics javascript code (taken from an instance of ScriptResource.axd). The javascript code seems to be part of Infragistics' implementation for the WebImageViewer control.
__isVisible:
function(element) {
if (!element)
element = this._element;
var contentArea = null;
try {
contentArea = element.offsetParent;
}
catch
(ex) { };
if (contentArea == null)
/* SJZ - In firefox, if the element's display is none, then it does not have an OffsetParent*/
return false;
while (contentArea != null && contentArea.offsetWidth <= element.offsetWidth && contentArea.tagName != "DIV")
/* AS Only if the contentArea is not DIV */
contentArea = contentArea.offsetParent;
if (this._control.get_orientation() == $IG.Orientation.Horizontal) {
var visibleAreaWidth = contentArea.offsetWidth;
Hello Philip,
what is the exact build number? Can you upload sample ?
Thank you
version="10.3.20103.1013"
Sending a sample is problematic. We are about to upgrade Infragistics. If we have the same problem after the upgrade, I will put together a sample at that time.
When I originally described the problem, I was hoping that someone else might have experienced it. Apparently, I am the trailblazer on this one. Ah well.
I'll let you know whether the problem still exists after we have upgraded Infragistics.
Thanks.
Philip Morrison
version="10.3.20103.1013" was the RTM version of 10.3. I would recommend you test this with the latest Service Release 10.3.20103.2217.
If you manage to isolate this in a sample you can send it to support@infragistics.com and will test this for you.