使用 IE8 查看内容编辑器时,Firebug 错误导致 Sitecore 中的代码失败
我有一个带有自定义数据提供程序的 Sitecore 6 CMS,可以根据添加到父项目字段中的项目动态创建子项目。这工作正常(大约一周前是我最后一次处理这个项目),但现在我在 Web 客户端中收到源自 FirebugLite html 和 JS 文件的错误。基本上,我单击一个内容项,FirebugLite js 失败,然后自定义数据提供程序中的代码无法运行。
我本以为在 IE8 下运行时任何 FirebugLite 脚本都会被禁用或忽略(FirebugLite 不是 Firefox 插件吗?)
当我从 ..\sitecore\shell\Controls\Lib\ 中删除 FirebugLite 文件夹时,我的代码运行良好并且我不要收到客户端错误。我不太确定我的问题是什么。我想FirebugLite应该会影响IE8吗?如果从 Sitecore 目录树中删除 FirebugLite,我会错过什么?
我运行的是WindowsXP SP3,VS2008。我得到的错误如下:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 14 May 2010 06:42:04 UTC
Message: Invalid argument.
Line: 301
Char: 9
Code: 0
URI: http://xxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.js
Message: Object doesn't support this property or method
Line: 21
Char: 1
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.html
Message: Invalid argument.
Line: 301
Char: 9
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.js
Message: Object doesn't support this property or method
Line: 21
Char: 1
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.html
干杯,
詹姆斯。
I have a Sitecore 6 CMS with a custom data provider to create child items on the fly based on items added to a field in the parent item. This was working okay (about a week ago was the last time I was working on this project), but now I am getting errors in the web client which are originating in the FirebugLite html and JS files. Basically, I click on a content item, the FirebugLite js fails, and then my code in my custom data provider fails to run.
I would have thought any FirebugLite scripts would be disabled or ignored when running under IE8 (isn't FirebugLite a Firefox addin?)
When I remove the FirebugLite folder from ..\sitecore\shell\Controls\Lib\ my code runs fine and I don't get the clientside errors. I'm not really sure what my question is. I guess it is should FirebugLite affect IE8? What am I missing out on if I remove FirebugLite from the Sitecore directory tree?
I'm running WindowsXP SP3, VS2008. The errors I get are the following:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 14 May 2010 06:42:04 UTC
Message: Invalid argument.
Line: 301
Char: 9
Code: 0
URI: http://xxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.js
Message: Object doesn't support this property or method
Line: 21
Char: 1
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.html
Message: Invalid argument.
Line: 301
Char: 9
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.js
Message: Object doesn't support this property or method
Line: 21
Char: 1
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.html
Cheers,
James.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Firebug 是一个火狐浏览器插件。据我所知,FirebugLite 是纯 Javascript 版本,因此应该在任何浏览器中运行。如果您在使用 IE8 时遇到问题,那么删除它不会造成太大损失,因为 IE8 的开发人员工具栏非常适合操作 DOM 和 css,以及调试和分析 Javascript。话虽这么说,Firefox 永远是我开发过程中的首选。
Firebug is a Firefox plugin. As far as I'm aware FirebugLite is the Javascript-only version, and as such should run in any browser. If you're getting problems and using IE8 then you won't lose much removing it as IE8's developer toolbar is pretty decent for manipulating the DOM and css, as well as debugging and profiling Javascript. That being said, Firefox would always be my first choice during development.
我们在 IE 8 中也遇到了同样的问题。我们的一位开发人员发现,通过禁用 IE 中的“启用保护模式”选项可以解决该问题。
We have run into this same issue with IE 8. One of our developers found that it was solved by disabling the option for "Enable Protected Mode" within IE.