a1anm
a1anm

Reputation: 1629

JavaScript Undefined Error

I'm getting this JavaScript error with IE explorer:

'Slideshow is undefined'

The error points to this bit of code:

<script type="text/javascript">
new SlideShow('listOfImages');
</script>

Upvotes: 1

Views: 1721

Answers (2)

mfeingold
mfeingold

Reputation: 7154

SlideShow is a name of an object constructor. It has to be defined prior to its use in the script tag either in the embedded script or in a file loaded by the tag

Upvotes: 1

YOU
YOU

Reputation: 123791

May be you didn't include the required javascripts files for mootools

http://www.electricprism.com/aeron/slideshow/

http://code.google.com/p/slideshow/

for example, include mootools, and slideshow

<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/slideshow.js"></script>

Upvotes: 1

Related Questions