StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-21-2009, 09:46 PM
shubeydo shubeydo is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 27
Default IE8 JavaScript Error

Can someone please tell me why I continually get this JavaScript error with IE8. The page loads correctly but it always shows this error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Mon, 22 Jun 2009 02:18:10 UTC


Message: 'document.getElementById(...)' is null or not an object
Line: 52
Char: 2
Code: 0
URI: http://thegreatmonkey.com/


Here is the code from my site:

Code:
-->
</style>
 
<script type="text/javascript"><![CDATA[//><!--
sfHover = function() {
	if (!document.getElementsByTagName) return false;
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
 
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
 
}
  #2  
Old 06-22-2009, 09:49 AM
Craig Tuller's Avatar
Craig Tuller Craig Tuller is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2008
Location: Raleigh, NC
Posts: 7,698
Default Re: IE8 JavaScript Error

viewtopic.php?f=64&t=5302

In your case, you have NO menu or submenu, so you will need to remove the entire javascript section used for the menus.
  #3  
Old 06-22-2009, 11:24 AM
shubeydo shubeydo is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 27
Default Re: IE8 JavaScript Error

You were exactly correct Craig. Thank You so much for your quick reply. Best to you.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown JavaScript / Page Error npost General Discussion 11 01-19-2010 02:48 AM
javascript error with ie6/7 only boots General Discussion 7 04-07-2009 03:37 PM
Javascript Error? DjiXas General Discussion 5 02-01-2009 12:54 PM


All times are GMT -5. The time now is 05:04 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.