views:

175

answers:

1

i am using movable type 4.23 (publishing system) and have been testing my site on a PC and discovered that internet explorer (IE) browsers are 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 its not an object.

all other browsers work perfectly (firefox, safari and opera on my mac and firefox on pc).

if anyone wants a link to the test page, i can provide that...

someone please help! thanks.

A: 

There are two possibilities for this error.

1) There is no element with the ID you've entered. Check to make sure the ID is exactly right, including correct upper and lower case letter.

2) The element DOES exist, but the JavaScript is running BEFORE it has been rendered in your document. Calls to an element should always occur AFTER they appear on the page.

Sohnee