PDA

View Full Version : Error when running Thumbnailviewer2.js File



Senman25
01-27-2008, 01:35 PM
Hi,
could someone assist, I am trying to run Thumbnailviewer2.js file, but am getting the following error;
Line:6
Char:1
Error: 'document'is undefined
Code:800A1391
Source:Microsoft Jscript runtime error

what is that I need to do run the file without this error coming up; am using the following script, which requiers this file in order to function properly
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="This is an example">Thumbnail Example 1</a><br />
<a href="http://www.nasa.gov/images/content/168177main_image_feature_749_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea">Thumbnail Example 2</a><br />

<a href="http://www.nasa.gov/images/content/166615main_image_feature_733_ys_4.jpg" rel="enlargeimage::click" rev="loadarea2">Thumbnail Example 3 (click)</a><br />
<a href="http://www.nasa.gov/images/content/168291main_image_feature_750_ys_4.jpg" rel="enlargeimage::click" rev="loadarea2">Thumbnail Example 4 (click)</a><br /><br />

<div id="loadarea" style="width: 600px"></div>

<h2 />

<div id="loadarea2" style="width: 550px"></div>

thanks
Senman25

jscheuer1
01-27-2008, 07:06 PM
My first impression would be to say - don't run it, install the script as instructed on the demo page and let the browser run it as a part of the page.

But I cannot be sure this is the situation, it only appears to be the most likely case, given your post. If I have misunderstood the situation:

Please post a link to the page on your site that contains the problematic code so we can check it out.

Senman25
02-10-2008, 03:27 PM
Thanks John for the reply, please bear with me am not a developer and I seem not to get it right. Having followed the demo instruction, and put the mouse over the pic, it still doesnt work.

How do I link the .js file to the page

jscheuer1
02-10-2008, 03:42 PM
Follow Step 1 from the demo page and put the script file in the same folder as your page.