Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error on the Page in IE


hafsar

Recommended Posts

Posted

Hello,

This comes after I have received a final product from my developer and am totally on my own. There are some things that are kind of frustrating to me, and I am unable to get hold of any solution from the developer.

 

Firstly, when I open up the website, it works well in all browser (maybe, they don't show anything on status bar) but I get this irritating yellow notification on left corner suggesting 'error on page', the details of the error are as follow:

 

 

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: Sun, 1 Nov 2009 21:49:05 UTC

 

 

Message: 'document.getElementById(...)' is null or not an object

Line: 26

Char: 2

Code: 0

 

 

The above error would show up any page I view.

 

Any help in this regard would be appreciated.

Posted

Hello,

This comes after I have received a final product from my developer and am totally on my own. There are some things that are kind of frustrating to me, and I am unable to get hold of any solution from the developer.

 

Firstly, when I open up the website, it works well in all browser (maybe, they don't show anything on status bar) but I get this irritating yellow notification on left corner suggesting 'error on page', the details of the error are as follow:

 

 

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: Sun, 1 Nov 2009 21:49:05 UTC

 

 

Message: 'document.getElementById(...)' is null or not an object

Line: 26

Char: 2

Code: 0

 

 

The above error would show up any page I view.

 

Any help in this regard would be appreciated.

Unless you can post your URL so one can look at the HTML source this probably won't get solved here...

:blush:

 

(And even if you do that's no guarantee it will be solved either)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thanks Germ,

I have been trying to google the problem for sometime and I think I was able to find it which should have worked.

A website provided me with a code that was to be included, so I added it to header.php - the code was as follow:

 

<script type="text/javascript">
if (/msie/i.test (navigator.userAgent)) //only override IE
{
document.nativeGetElementById = document.getElementById;
document.getElementById = function(id)
{
	var elem = document.nativeGetElementById(id);
	if(elem)
	{
		//make sure that it is a valid match on id
		if(elem.attributes['id'].value == id)
		{
			return elem;
		}
		else
		{
			//otherwise find the correct element
			for(var i=1;i<document.all[id].length;i++)
			{
				if(document.all[id][i].attributes['id'].value == id)
				{
					return document.all[id][i];
				}
			}
		}
	}
	return null;
};
}
</script>

 

However, this did not completely sorted the matter although from my research around, it should have acted well because it was basically how IE was reading the Javascript.

 

Just while I was doing this insertion, there was another script in the header.php which I for the sake of trying removed and the website worked without any error, however I am not sure what was basic functionality of the code, so any thoughts on that would help:

 

Here is the deleted code.

 

<script type="text/javascript"><!--//--><![CDATA[//><!--

sfHover = function() {
var sfEls = document.NativegetElementById("cras").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"), "");
	}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]></script>

 

Thanks!

Posted

A CSS style changing script for something.

 

Like I said before, NO URL = LITTLE PROBABLE HELP

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

A CSS style changing script for something.

 

Like I said before, NO URL = LITTLE PROBABLE HELP

 

Oh that's alright, I figured out it was to do with a script for menu.

 

The URL is: www.anonto.com

 

I have been trying to fix few things, and realized it is actually for styling. (Y)

 

Also, any idea how would I be able to apply any JQuery or simple CSS Formatting on to left column, as in the Navigation bar.

Basically, I tried used an add-on to convert the Categories into Unordered List using the Contribution http://addons.oscommerce.com/info/4201; now considering this I should be able to have it formatted by working in Stylesheet, but when I added all the necessary changes, it wouldn't take effect and appears simple text.

So I had to revert back to the original.

 

Any suggestions would be appreciated.

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...