coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dereksurfs on November 30, 2006, 11:07:49 PM

Title: Slideshow not working in IE but does in FF
Post by: dereksurfs on November 30, 2006, 11:07:49 PM
Hello,

I was testing my site and noticed the slideshow does not work in IE.  It work fine in Firefox.  So it sounds like a browser specific problem.  The error reported is very non-descriptive:
Line: 190
Char: 7
Error: Unspecified Error.

You can see it here:
http://www.lightquestphoto.com/coppermine/displayimage.php?album=1&pid=2&slideshow=4000

I checked the javascript runslideshow function in slideshow.inc.php.  Could the error be here:
function runSlideShow(){
   if (xIE4Up){
            document.images.SlideShow.style.filter="blendTrans(duration=2)"
                document.images.SlideShow.style.filter= "blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
        }
        document.images.SlideShow.src = preLoad[j].src
        if (xIE4Up){
           document.images.SlideShow.filters.blendTrans.Play()
        }

        pos = j

        j = j + 1
        if (j > (p-1)) j=0
        t = setTimeout('runSlideShow()', slideShowSpeed)
        preLoadPic(j)
}



Thanks for any help you can provide,

- Derek



Title: Re: Slideshow not working in IE but does in FF
Post by: Sami on November 30, 2006, 11:13:51 PM
Working fine with IE 6.0.2900.2180.xpsp_sp2
what is your IE version
Title: Re: Slideshow not working in IE but does in FF
Post by: dereksurfs on November 30, 2006, 11:39:18 PM
Sami,

That is very strange because I am running the same exact version of IE that you are here at work.  I'll have to check which version of IE I am using at home.  But I am getting the same error there.

I checked the source code of that page and it is pointing to line 190 which is from the script I referenced above.

document.images.SlideShow.filters.blendTrans.Apply()

Any idea what blend.trans.apply does or if I could turn it off?

Thanks,

Derek
Title: Re: Slideshow not working in IE but does in FF
Post by: Sami on November 30, 2006, 11:43:27 PM
QuoteAny idea what blend.trans.apply does or if I could turn it off?
It's a M$ ActiveX , comment it and see if you got that error again !
Title: Re: Slideshow not working in IE but does in FF
Post by: dereksurfs on December 01, 2006, 12:03:10 AM
Ok,

That explains things.  ActiveX controls can cause problems on the same versions of IE depending on one's security settings.  I commented out these two lines and now it works:


//document.images.SlideShow.filters.blendTrans.Apply()
...
//document.images.SlideShow.filters.blendTrans.Play()


I could reduce my security level.  But I would rather it be compatible on other people's browers with higher security settings like mine. 

Thanks,
Derek
Title: Re: Slideshow not working in IE but does in FF
Post by: Sami on December 01, 2006, 12:10:14 AM
Then it's better to set Run ActiveX control and plug-ins  to Prompt instead of Disable
Title: Re: Slideshow not working in IE but does in FF
Post by: dereksurfs on December 01, 2006, 12:20:56 AM
Yes,

I have that set to 'Enable' already.  But there are about 6 or 7 ActiveX settings all together.  Most I have set to Enable or Prompt.  There are a couple that are set to disable such as 'Initialize and script ActiveX controls not marked as safe.'

- Derek