Topic: Gallery Not Found only in IE8

I have one page with two galleries on it; works fine on Mac Safari and XP Safari and Firefox as well. On IE8 on XP, I get "Gallery Not Found".

Have paths set as:

        imagePath="commissions/images/"
    thumbPath="commissions/thumbs/"

Any suggestions as to why IE doesn't like this? XML files for both are in the root directory of the site.

Thanks for your help.

Re: Gallery Not Found only in IE8

Hi,
Can you post a link to your site? You can use this to embed your .swf file; it writes  a few lines of code for IE. It is very easy to use. Here is the link http://code.google.com/p/swfobject/ I have had some problems in the past with IE not reading the swf file correctly and this fixed it.
Hope this helps.

Re: Gallery Not Found only in IE8

Thanks. Is there an example of how to use the object tag to load a gallery with a transparent background? I'm on a short deadline and don't have the time to read through this site. --Thanks.

Re: Gallery Not Found only in IE8

The site I'm working on is at http://test2.mtjit.com.

Re: Gallery Not Found only in IE8

If you decide to use the SWFObject file from http://code.google.com/p/swfobject/ you need to use to code below. I have added transparency to it.

in your head:

<head>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript"> 
            var flashvars = {};
            flashvars.firstImageIndex = "0";
            var params = {};
            params.play = "true";
            params.menu = "false";
            params.quality = "best";
            params.scale = "noscale";
            params.allowfullscreen = "false";
            params.allowScriptAccess = "sameDomain";
            params.wmode = 'transparent';
            var attributes = {};
            attributes.id = "flashContent";
            swfobject.embedSWF("viewer.swf", "flashContent", "100%", "100%", "8.0.0", false, flashvars, params, attributes);
</script>
</head>

in your body

<div id="flashContent">
    <p>In order to view these galleries you must have <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Adobe Flash Player</a> installed. 
    If you know that you have Flash installed, then please ensure JavaScript and/or Active Content are enabled.</p>
</div>
Mike Richards
SimpleViewer Support Team.

Re: Gallery Not Found only in IE8

I've added this to the head:

<script type="text/javascript" src="lib/swfobject.js"></script>
<script type="text/javascript">
            var flashvars = {};
            flashvars.firstImageIndex = "0";
            var params = {};
            params.play = "true";
            params.menu = "false";
            params.quality = "best";
            params.scale = "noscale";
            params.allowfullscreen = "false";
            params.allowScriptAccess = "sameDomain";
            params.wmode = "transparent";
            params.xmlDataPath="commissions.xml";
            var attributes = {};
            attributes.id = "flashContent";
            swfobject.embedSWF("viewer.swf", "flashContent", "100%", "100%", "8.0.0", false, flashvars, params, attributes);
</script>

=========
and this to the body:
=========

<div id="flashContent">
    <p>In order to view these galleries you must have <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Adobe Flash Player</a> installed.
    If you know that you have Flash installed, then please ensure JavaScript and/or Active Content are enabled.</p>
</div>

=========

and now it doesn't work in IE or Mac. I have to have three galleries on this page, btw.

The gallery I am working on at the moment is in the "Collections" tab all the way to the right.

Re: Gallery Not Found only in IE8

Not sure if this is purposeful or not, line 96, 4 lines down from <!-- News Article 4 -->, has a double anchor at the end </a></a>. Beyond that I'll have to take a longer look there is a lot of code in that page.

Mike Richards
SimpleViewer Support Team.

Re: Gallery Not Found only in IE8

Thanks. Corrected that and ran the page against the HTML Validator at w3c.org. There are now no errors but the behavior stays the same.

Re: Gallery Not Found only in IE8

There is a lot of code going on in this page and the page is continually changing as you work on it, so it is hard to see what is conflicting. I'm not sure you are going to be able to use the code I posted for more then one gallery in one page, which seems to be how you are using it. I'm wondering if some of the javascripts aren't getting along, I would try replacing your older version of SWFObject 1.5 with version 2.1

http://swfobject.googlecode.com/files/swfobject_2_1.zip

Mike Richards
SimpleViewer Support Team.

Re: Gallery Not Found only in IE8

Hi Mike,

Thanks for your efforts. I'm cleaning up the stylesheets now and getting the site finished. I'll post a reply when I'm done. Have put in the new library as you suggested.

I'm working on an alternate method to do the galleries at the moment. Would really like to use simpleviewer, though.

--Mark Johnson

Re: Gallery Not Found only in IE8

I've finished cleaning up the CSS and JS libraries for the site for the moment. I've updated the SWFObject as you requested, and now it doesn't work at all.

I've set up a page which won't be modified, http://test2.mtjit.com/jg-index2.html that has the simpleviewer code in it.

The gallery is in the Commissions tab, and then click on Portfolios.

Thanks,
--Mark

Re: Gallery Not Found only in IE8

<div id="content4_gallery">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>   
    <script type="text/javascript">
   
        var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "8", "#181818");
       
        // SIMPLEVIEWER CONFIGURATION OPTIONS
        // To use an option, uncomment it by removing the "//" at the start of the line
        // For a description of config options, go to:
        // http://www.airtightinteractive.com/simp … tions.html
       
        fo.addVariable("xmlDataPath", "commissions.xml");
        //fo.addVariable("firstImageIndex", "5");   
        //fo.addVariable("langOpenImage", "Open Image in New Window");
        //fo.addVariable("langAbout", "About");   
        //fo.addVariable("preloaderColor", "0xFFFFFF");
       
        fo.write("content4_gallery");   
    </script>

I took the code you are using for the gallery and made a page with by itself and everything works fine. This would lead me to believe that one of the other javascripts in the page is causing the issue.

Mike Richards
SimpleViewer Support Team.