Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
176
Microsoft JScript runtime error: 'currentStyle' is null or not an object
posted

Hi all, 

 I am adding a webpanel to a control panel in my codebehind. There are no build errors. When i run the website i get this error:

Microsoft JScript runtime error: 'currentStyle' is null or not an object

 It breaks in the file ScriptResource.axd?d=blablablabla

 /*
  * Infragistics WebMisc CSOM Script: ig_webpanel.js
  * Version 7.3.20073.38
  * Copyright(c) 2001-2006 Infragistics, Inc. All Rights Reserved.
  */

ig_WebPanel.prototype._getCurrentStyle=function(elem)
                                                {
                                                    var style = elem.currentStyle;
                                                    if(style == null)
                                                    {
                                                        var w = document.defaultView;   
                                                        if(w == null)
                                                            w = window;
                                                        if(w.getComputedStyle)
                                                            style = w.getComputedStyle(elem, '');
                                                    }
                                                    return style;
                                                }

 Thank in advance