Logged Out
Create an Account
Login:
Password:

Forgot your password?
Error in IE7, but fine with IE6 & Firefox3

Error in IE7, but fine with IE6 & Firefox3
[Back to Index]  [Bottom of Thread]
Thread Tags
Primary: [General]
Secondary: None
I'm not sure if it's something I did, but when I view my main news page, I get 2 errors at the bottom of IE7. Interestingly, I do not get an error with IE6 at work, and Firefox3 loads the page fine from home.

Does anyone else use IE7 that could visit my page and see if they get both errors too? I'd appreciate it.

The first has been there for awhile.

Line: 2
Char: 7
Error: Invald character
Code: 0
URL: http://followers.dkpsystem.com/news.php

The other is new:

Line: 14
Char: 3
Error: 'this.container' is null or not an object
Code: 0
URL: http://followers.dkpsystem.com/news.php


--
Followers of Nobility
Quote by Jedis
I'm not sure if it's something I did, but when I view my main news page, I get 2 errors at the bottom of IE7. Interestingly, I do not get an error with IE6 at work, and Firefox3 loads the page fine from home.

Does anyone else use IE7 that could visit my page and see if they get both errors too? I'd appreciate it.

The first has been there for awhile.

Line: 2
Char: 7
Error: Invald character
Code: 0
URL: http://followers.dkpsystem.com/news.php

The other is new:

Line: 14
Char: 3
Error: 'this.container' is null or not an object
Code: 0
URL: http://followers.dkpsystem.com/news.php


IE7 Both errors

The problem is with some custom Javascript you've got running there.

To fix some of the problems, I'd recommend putting the <Script> tags at the bottom of your code. I lnow that's not the W3 standard, but the problem has to do with your code trying to access the DOM before it's rendered. Alternatively, you could have your code first executed in the onload event.

I'm not getting an "invalid character" message, though I am getting what amount to a number of DOM errors, all solved by my instructions above.

--
It's all in the reflexes.
How do I move the code to the onload event?

I have a body tag with an onload event for the counter:

<body onload="counter_setup()">


Also noticed issues between FF and IE. If you view my site with FF, the Quick Admin Panel on the right side of the site is spaced nicely. If you view it with IE, it's smashed together with no line spacing. If I add extra line breaks to fix IE, then FF gets double spacing?!

Also, the copy of the current layout file I get from the site gets extra blsnk lines randomly between lines of code vs my saved copy. Not sure why and it doesn't affect anything, but just wanted to give you a heads up.

--
Followers of Nobility
I tried moving the script tags to the bottom and I still get the errors in IE. I guess I won't worry too much about it - I use Firefox and it doesn't show any errors.

Now if I used IE regularly, that yellow exclaimation mark would be constantly jumping out at me from the bottom of the screen screaming 'FIX ME'

--
Followers of Nobility


[Back to Index]  [Top of Thread]