IE 8 script Error

Posted by berad 
IE 8 script Error
June 22, 2010 03:48AM
Hey guys

When testing my slideshows - IE8 has picked up 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; InfoPath.2)
Timestamp: Tue, 22 Jun 2010 03:42:30 UTC

Message: Object required
Line: 107
Char: 6
Code: 0

The script on line 107 is
var contentHeight = contentElement.offsetHeight;

I notice contentElement has been declared but offsetHeight has not been included anywhere else in the script function
is this important ?? or have you come across this error before

Re: IE 8 script Error
June 22, 2010 08:44AM
We need more information in order to figure out why you have this problem since we are not sure of what you are talking. Open a ticket and send us the source files and everything you have related to this problem.
Re: IE 8 script Error
June 22, 2010 09:29AM
Thanks guys appreciate your time on this - being a newbie I'm not sure how to Open a Ticket?

The above I.E. 8 warning was from this URL

Two other pages that have slideshows also have I.E.8 warnings

let me know what else you need

Re: IE 8 script Error
June 22, 2010 02:38PM
You can open a ticket here:
Re: IE 8 script Error
June 22, 2010 02:43PM
After taking a closer look to this problem I realize that:
"The script on line 107 is
var contentHeight = contentElement.offsetHeight;"
this code is not generated by our component so the problem is not related to slideshowbox.
Re: IE 8 script Error
June 23, 2010 05:05AM
Actually being quite frank - the declaration of that variable/code is included in all of the HTML sample.html Template files supplied by JumpEye.

I simple copied and pasted these scripts from these sample files
Any suggestions?

Re: IE 8 script Error
June 23, 2010 01:39PM
That's correct,it is included but is not related to the SlideShowBox embed feature, the code just align some objects that you don't have. You can use the embed feature by signing in in the online panel(
You took our java script sample code and add it to your file. That's not correct, the code is made to work only for our samples. Anyway if you want to use our code you need to change this function getElementByID("content") with getElementByID("mainContent") function.
Re: IE 8 script Error
June 23, 2010 11:01PM
I really appreciate your help Kneo

That's a very useful feature-set you mentioned
I actually wasn't sure whether to use the sample scripts as I would usually use the Dreamweaver automatic embed feature

BTW your last advice on the code worked perfectly and the warning has now gone

ah well always learning
Sorry, only registered users may post in this forum.

Click here to login