Infragistics NetAdvantage 的 ASP.NET部分控件在IE7.0下不能正常工作的问题及解决
2007-07-03 10:45
921 查看
Infragistics NetAdvantage 的 ASP.NET部分控件在IE7.0下不能正常工作的问题及解决
Infragistics NetAdvantage 是一个针对Microsoft开发环境(如Windows Forms, ASP.NET, Tablet PC 和 COM),非常完善的商业用户界面库. Infragistics NetAdvantage 包含了所有必要的界面元素,如grids, scheduling, charting, toolbars, menus, listbars, trees, tabs, explorer bars, UI ,editors等
问题:
tree控件在IE7.0下不能正常工作。如下图
![](http://www.cnblogs.com/images/cnblogs_com/foreverbeta/a.gif)
当用户点击树型控件的节点时,页面PostBack后将获取的数据绑定到右边的下拉列表控件。该功能在IE6、FireFox1.5上运行正常。但当我将IE7升级到7.0后,出现上面的问题。
解决方法:
经过分析,发现问题出在站点目录下的infragistics/Scripts/ig_csom.js文件中。
源文件
// ig_csom class implements the basic browser independent functionality
function ig_initcsom()
{
// Public Properties
this.ScriptVersion ="3.1.20042.3";
// navigator.userAgent is not being validated because ig_csom should not be used for unknown browsers.
this.AgentName =navigator.userAgent.toLowerCase();
this.MajorVersionNumber =parseInt(navigator.appVersion);
this.IsDom =(document.getElementById)?true:false;
this.IsNetscape =(document.layers?true:false);
this.IsNetscape6 =(this.IsDom&&navigator.appName=="Netscape");
this.IsOpera =this.AgentName.indexOf('opera')!=-1;
this.IsMac =(this.AgentName.indexOf("mac")!=-1);
this.IsIE =(document.all?true:false);
this.IsIE4 =(document.all&&!this.IsDom)?true:false;
this.IsIE4Plus =(this.IsIE && this.MajorVersionNumber >= 4)?true:false;
this.IsIE5 =(document.all&&this.IsDom)?true:false;
this.IsIE50 =this.IsIE5&&(this.AgentName.indexOf("msie 5.0")!=-1);
this.IsWin =((this.AgentName.indexOf("win")!=-1) || (this.AgentName.indexOf("16bit")!=-1));
this.IsIE55 =((navigator.userAgent.indexOf("MSIE 5.5") != -1) && (navigator.userAgent.indexOf("Windows") != -1));
this.IsIEWin =(this.IsIE && this.IsWin);
this.IsIE6 =((navigator.userAgent.indexOf("MSIE 6.0") != -1) && (navigator.userAgent.indexOf("Windows") != -1));
this.IsIE55Plus =(this.IsIE55 || this.IsIE6);
this.IsSafari =this.AgentName.indexOf('safari')!=-1;
// Obtains an element object based on its Id
原来是js函数在判断时不能识别IE7.0。于是我加入以下代码:
this.IsIE7 =((navigator.userAgent.indexOf("MSIE 7.0") != -1) && (navigator.userAgent.indexOf("Windows") != -1));
并将 this.IsIE55Plus =(this.IsIE55 || this.IsIE6); 修改为 this.IsIE55Plus =(this.IsIE55 || this.IsIE6 || this.IsIE7);
在使用IE7.0登录系统,一些正常。哦也!!
Infragistics NetAdvantage 是一个针对Microsoft开发环境(如Windows Forms, ASP.NET, Tablet PC 和 COM),非常完善的商业用户界面库. Infragistics NetAdvantage 包含了所有必要的界面元素,如grids, scheduling, charting, toolbars, menus, listbars, trees, tabs, explorer bars, UI ,editors等
问题:
tree控件在IE7.0下不能正常工作。如下图
![](http://www.cnblogs.com/images/cnblogs_com/foreverbeta/a.gif)
当用户点击树型控件的节点时,页面PostBack后将获取的数据绑定到右边的下拉列表控件。该功能在IE6、FireFox1.5上运行正常。但当我将IE7升级到7.0后,出现上面的问题。
解决方法:
经过分析,发现问题出在站点目录下的infragistics/Scripts/ig_csom.js文件中。
源文件
// ig_csom class implements the basic browser independent functionality
function ig_initcsom()
{
// Public Properties
this.ScriptVersion ="3.1.20042.3";
// navigator.userAgent is not being validated because ig_csom should not be used for unknown browsers.
this.AgentName =navigator.userAgent.toLowerCase();
this.MajorVersionNumber =parseInt(navigator.appVersion);
this.IsDom =(document.getElementById)?true:false;
this.IsNetscape =(document.layers?true:false);
this.IsNetscape6 =(this.IsDom&&navigator.appName=="Netscape");
this.IsOpera =this.AgentName.indexOf('opera')!=-1;
this.IsMac =(this.AgentName.indexOf("mac")!=-1);
this.IsIE =(document.all?true:false);
this.IsIE4 =(document.all&&!this.IsDom)?true:false;
this.IsIE4Plus =(this.IsIE && this.MajorVersionNumber >= 4)?true:false;
this.IsIE5 =(document.all&&this.IsDom)?true:false;
this.IsIE50 =this.IsIE5&&(this.AgentName.indexOf("msie 5.0")!=-1);
this.IsWin =((this.AgentName.indexOf("win")!=-1) || (this.AgentName.indexOf("16bit")!=-1));
this.IsIE55 =((navigator.userAgent.indexOf("MSIE 5.5") != -1) && (navigator.userAgent.indexOf("Windows") != -1));
this.IsIEWin =(this.IsIE && this.IsWin);
this.IsIE6 =((navigator.userAgent.indexOf("MSIE 6.0") != -1) && (navigator.userAgent.indexOf("Windows") != -1));
this.IsIE55Plus =(this.IsIE55 || this.IsIE6);
this.IsSafari =this.AgentName.indexOf('safari')!=-1;
// Obtains an element object based on its Id
原来是js函数在判断时不能识别IE7.0。于是我加入以下代码:
this.IsIE7 =((navigator.userAgent.indexOf("MSIE 7.0") != -1) && (navigator.userAgent.indexOf("Windows") != -1));
并将 this.IsIE55Plus =(this.IsIE55 || this.IsIE6); 修改为 this.IsIE55Plus =(this.IsIE55 || this.IsIE6 || this.IsIE7);
在使用IE7.0登录系统,一些正常。哦也!!
相关文章推荐
- Infragistics NetAdvantage 的 ASP.NET部分控件在IE7.0 IE8.0 下不能正常工作的问题及解决
- Infragistics NetAdvantage 的 ASP.NET部分控件在IE7.0下不能正常工作的问题及解决(转)
- 如何解决vs2003 asp.net树控件不能正常显示的问题
- Asp.net 使用Neatupload 第三方控件上传大文件,在IIS7上无法正常工作解决
- asp.net web form与jQuery Validate一起工作时解决服务器端事件不能被触发的问题
- 一个dreamweaver插件,解决不支持部分asp.net 2.0控件问题
- 如何解决ASP.NET中中文不能正常显示问题?
- 在Vista,WIN2K8下IE7.0就不能正常访问asp.net development server解决办法
- 发布到SPS站点下的ASP.NET页面上的中文不能正常显示__问题解决方法
- 【ASP.NET】10.解决百度富文本编辑器UEditor本地上传图片正常,放到服务器上以后图片上传按钮变灰不能点击的问题
- 解决 asp.net 中如果 Menu 控件放在 MasterPage 中, IE6 会出现的二级菜单不能正确显示的问题
- 工作中的问题解决 -- (win2003 asp.net) Session和带页面回传的方法无法正常使用解决方案
- 在Vista,WIN2K8下IE7.0就不能正常访问asp.net development server解决办法
- ASP.NET网站中用到一个FlashUpload上传控件服务器上Flash就不能正常显示 axd映射问题
- 如何解决ASP.NET中中文不能正常显示问题
- 如何解决ASP.NET中中文不能正常显示问题?
- 解决Delphi的TAnimate控件的Common AVI在Vista以后版本中不能正常工作的问题
- 【转】解决CustomValidator控件不能验证控件值为空的问题(asp.net1.1测试环境)
- ASP.NET自定义控件的BUG在ASPX页面中注册控件后不能打出标签的问题(本人已解决)
- 解决asp.net web控件不能拖动的问题