0

I am using Movable Type 4.23 and have been testing my site on a PC and discovered that Internet Explorer is unable to view my site due to a conflict in the javascript of the signin widget (initially I thought it was in the mt.js file).

I receive this error: Error 80004004 as well as in the Javascript itself:

"Element is not an object"

(or object is not an element?)

function mtUpdateSignInWidget(u) {
    var el = document.getElementById('signin-widget-content');

If I put in id where sign-widget-content goes, it will say it is not an object.

All other browsers work perfectly (Firefox, safari and opera on my mac and Firefox on PC). Any ideas?

4

1 回答 1

0

此错误有两种可能性。

1) 没有您输入的 ID 元素。检查以确保 ID 完全正确,包括正确的大小写字母。

2) 元素确实存在,但 JavaScript 在它呈现在您的文档中之前正在运行。对元素的调用应该总是在它们出现在页面上之后发生。

于 2009-10-14T07:59:33.833 回答