IE语法错误,80020101和未定义的数组 [英] IE syntax error, 80020101 and undefined array

查看:94
本文介绍了IE语法错误,80020101和未定义的数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好伙计们,


我测试了一个在FF中运行良好的脚本,但是在使用IE7进行测试时,我发现了错误。我们状态栏左侧的那个着名的黄色警告图标。


基本上,我正在使用dhtmlgoodies打开一个新的弹出窗口模态消息工具。它在FF中打开很好,但是在IE中,一旦新窗口打开,黄色图标就会出现一堆错误。


错误是 -


1.语法错误,第3行,字符6.

2.由于错误80020101,第94行,字符6

无法完成操作3. chocArray未定义,第71行,字符1

现在,chocArray是我在打开的页面中定义的数组。奇怪的是,当我直接使用浏览调用页面(弹出窗口)时,我没有看到任何这些错误,但是当我通过单击父页面中的链接来调用页面时,错误就出现了。 />

我在第3行看不到任何内容,页面中的前三行(弹出窗口)显示 -

Well guys,

I have tested a script that''s working well in FF, however while testing with IE7, I am finding errors. That famous yellow warning icon at the left of our status bar.

Basically, I am opening a new popup window using dhtmlgoodies modal message tool. It opens well in FF, however in IE, the yellow icon appears with a bunch of erros as soon as the new window opens up.

The erros are -

1. Syntax error, line 3, character 6.
2. Could not complete the operation due to error 80020101, line 94, character 6
3. chocArray is undefined, line 71, character 1

Now here chocArray is an array I am defining in the page that opens. Strange is, when I call the page (the popup) directly using the browse, I don''t see any of these errors, but when I call the page by clicking a link in the parent page, the erros come up.

I could not see anything in line 3, where the first three lines in the page (popup) reads -

展开 | 选择 | Wrap | 行号

推荐答案

好的,现在是凌晨1点,如果有人可以提供帮助,我想再提供一些更新信息。


我现在在Safar测试了这个i 3,Opera 9.24,IE7和IE6,Netscape 8.1和9.0.0.5,以及Firefox 2.0.0.11。


其中,该脚本仅适用于Firefox 2.0.0.11和Netscape 9.0.0.5,其余的,我有类似的错误。


这里我添加完整的弹出页面(html版本),只是有人想看看。 />
OK, it''s 1 am now, and I thought to give another update with some more information, if someone can help.

I have now tested this in Safari 3, Opera 9.24, IE7 and IE6, Netscape 8.1 and 9.0.0.5, and Firefox 2.0.0.11.

Of those, the script is working only in Firefox 2.0.0.11 and Netscape 9.0.0.5 and for the rest, I am having similar bugs.

Here I am adding the full popup page (html version), just incase someone wants to have a look.

展开 | 选择 | Wrap | 行号


好朋友,更新时间,如果其他人到达此页面谷歌搜索,面临类似的情况。 ..


现在,我很高兴已经能够通过删除来调试Safari 3问题

OK friends, update time, just incase if someone else reaches this page googling, facing a similar situation ...

As it stands now, I have been able to debug the Safari 3 issues by removing

展开 | 选择 | Wrap | 行号


嗨......


你为什么要使用img'的onload?尝试使用正文的onload ...即使是直接跟随正文的脚本也可以在该onload中启动...在页面加载期间 document.getElementById()将始终失败...和返回null ...页面加载后,它将按预期工作并正确返回节点...


亲切的问候
hi ...

why do you use the img''s onload? try to use the onload of the body ... even the script that directly follows the body could be started in that onload ... during page load document.getElementById() will always fail ... and return null ... after the page is loaded, it will work as expected and return the nodes properly ...

kind regards


这篇关于IE语法错误,80020101和未定义的数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆