PDA

View Full Version : Fadeslideshow getting undefined errors in IE works in Firefox



giventoflyfish
01-12-2010, 02:25 AM
1) Script Title: Fadeslideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: get the following error

Message: Object doesn't support this property or method
Line: 44
Char: 2
Code: 0
URI: http://maineflyfish.com/Scripts/fadeslideshow.js



<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<script type="text/javascript" src="Scripts/fadeslideshow.js">

/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

<script type="text/javascript">

var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [300, 171], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.maineflyfish.com/hatches/caddis.jpg", "http://www.maineflyfish.com/hatches/caddisfly/page1.htm", "", "Caddis: Click to read Caddis Hatch report"],
["http://www.maineflyfish.com/hatches/dragonfly.jpg", "http://www.maineflyfish.com/hatches/dragonfly/page1.htm", "", "Dragonfly: Click to read Dragonfly Hatch report"],
["http://www.maineflyfish.com/hatches/mayfly.jpg", "http://www.maineflyfish.com/hatches/mayfly/page1.htm", "", "Mayfly: Click to read Mayfly Hatch report"],
["http://www.maineflyfish.com/hatches/midge.jpg", "http://www.maineflyfish.com/hatches/midges/page1.htm", "", "Midge: Click to read Midge Hatch report"],
["http://www.maineflyfish.com/hatches/newengland.jpg", "http://www.maineflyfish.com/hatches/newenglandhatches/page1.htm", "", "New England: Click to read New England Hatch report"],
["http://www.maineflyfish.com/hatches/stonefly.jpg", "http://www.maineflyfish.com/hatches/stonefly/page1.htm", "", "Stonefly: Click to read Stonefly Hatch report"]
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})

</script>

giventoflyfish
01-12-2010, 05:07 PM
Sorry, the post title should read "Object doesn't support this property or method" instead of undefined. I was looking up a different error when I wrote it.

Anyone have any suggestions?

jscheuer1
01-12-2010, 05:36 PM
The page is a bit of a mess code wise. I'd try changing this (from the page's source code):


<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" title='Main' media="screen" href="http://www.maineflyfish.com/forums/public/style_css/css_1/ipb_ie.css" />
<![endif]-->
<!--<meta http-equiv="X-UA-Compatible" content="IE=7" />-->

to:


<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" title='Main' media="screen" href="http://www.maineflyfish.com/forums/public/style_css/css_1/ipb_ie.css" />
<![endif]-->

and placing it all before the first script tag on the page. With a bit of luck that should take care of it.

giventoflyfish
01-12-2010, 09:24 PM
John, thanks for that quick response. I did that and moved it to the top by still no luck.

jscheuer1
01-12-2010, 11:37 PM
Works here in IE 8 on:

http://maineflyfish.com/

Perhaps you need to clear your IE 8 browser's cache.

giventoflyfish
01-13-2010, 03:21 AM
Thanks! I did clear my cache just now and it looks like it is working! Thanks for your help.