mocax
02-10-2009, 02:42 PM
1) Script Title: Ultimate Fade-In Slideshow
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:
I get this js error in firefox "this.theimages[picindex] is undefined" and similar one in IE, whenever the images array is of size 1.
It happens on the line
if (this.theimages[picindex][1]!="") //if associated link exists for image
my site retrieves a list of images from the database and output them as, for example
<script type='text/javascript'>
var slides = new Array()
slides[0]=['http://i43.tinypic.com/2mgpch3.jpg', '', '']
slides[1]=['http://i41.tinypic.com/vgsapj.jpg', '', '']
new fadeshow(slides, 800, 600, 0, 3000, 1)
</script>
however, sometimes the database only has a single image available and the server generates the following
<script type='text/javascript'>
var slides = new Array()
slides[0]=['http://i43.tinypic.com/2mgpch3.jpg', '', '']
new fadeshow(slides, 800, 600, 0, 3000, 1)
</script>
this is the case when it gets the error.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:
I get this js error in firefox "this.theimages[picindex] is undefined" and similar one in IE, whenever the images array is of size 1.
It happens on the line
if (this.theimages[picindex][1]!="") //if associated link exists for image
my site retrieves a list of images from the database and output them as, for example
<script type='text/javascript'>
var slides = new Array()
slides[0]=['http://i43.tinypic.com/2mgpch3.jpg', '', '']
slides[1]=['http://i41.tinypic.com/vgsapj.jpg', '', '']
new fadeshow(slides, 800, 600, 0, 3000, 1)
</script>
however, sometimes the database only has a single image available and the server generates the following
<script type='text/javascript'>
var slides = new Array()
slides[0]=['http://i43.tinypic.com/2mgpch3.jpg', '', '']
new fadeshow(slides, 800, 600, 0, 3000, 1)
</script>
this is the case when it gets the error.