1

我有一个带有自定义数据提供程序的 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

干杯,

詹姆士。

4

2 回答 2

1

Firebug 是一个火狐插件。据我所知,FirebugLite 是纯 Javascript 版本,因此应该在任何浏览器中运行。如果您遇到问题并使用 IE8,那么删除它不会有太大损失,因为 IE8 的开发人员工具栏非常适合操作 DOM 和 css,以及调试和分析 Javascript。话虽如此,Firefox 始终是我在开发过程中的首选。

于 2010-05-14T07:26:16.613 回答
0

我们在 IE 8 中也遇到了同样的问题。我们的一位开发人员发现,通过禁用 IE 中的“启用保护模式”选项可以解决这个问题。

于 2010-05-17T19:24:41.490 回答