Topic: Gallery not displaying correctly in IE

Hi, I've put together galleries for a website, using ProV2. Embedded code is:

                <!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.crucians.org/html/galleries/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.crucians.org/html/galleries/";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "600", "600", "CC9900", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

This displays perfectly in Firefox, see:

http://www.crucians.org/html/galleries.shtml

...but in IE7  using flash WIN 9,0,115,0 it appears to show a mobile view...

I've done a search and spent some time looking into flash not loading (seemed obvious culprit) and drew a blank. Be most grateful if you can advise...

Thank you.

Re: Gallery not displaying correctly in IE

The SimpleViewer v2.x SWF file requires Adobe Flash Player 9.0.124 or later.
If this minimum requirement is not met, then the mobile version will be displayed.
Upgrade your version of Flash Player (the current version is 10,2,153,1) in IE7 and all should be well.
http://get.adobe.com/flashplayer/

Steven Speirs
SimpleViewer Support Team.

Re: Gallery not displaying correctly in IE

Steve,

That fixed it, many thanks for the fast answer.

CoB

Re: Gallery not displaying correctly in IE

Steve,

Following on from this, is there anyway to test for Flash version and display an upgrade suggestion from within the simpleviewer page code?

Last edited by crustyoldbob (2011-04-26 13:41:57)

Re: Gallery not displaying correctly in IE

Currently the embed code does not provide a way to choose to test for a specific flash version if you are using SimpleViewer version 2.1.0 or higher and intend to use the non-flash/mobile version of the gallery.

Mike Richards
SimpleViewer Support Team.

Re: Gallery not displaying correctly in IE

SimpleViewer v2.1 and later incorporates Universal Playback whereby if the required Adobe Flash Player version (9.0.124) is not detected, then the gallery will be displayed using HTML.
If you would rather have SimpleViewer display a warning/upgrade message than the HTML gallery, then you can embed the SWF file from the SimpleViewer Pro v2.1.2 download package ('simpleviewer_pro_212/web/svcore/swf/simpleviewer.swf') using the embed code from v2.0.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
    var flashvars = {};
    flashvars.galleryURL = "gallery.xml";
    var params = {};            
    params.allowfullscreen = true;
    params.allowscriptaccess = "always";
    params.bgcolor = "222222";
    swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
</script>
<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://get.adobe.com/flashplayer/">Get Flash</a></div>

In this case, if Adobe Flash Player v9.0.124 is not detected, then the contents of the 'flashContent' <div> will be displayed.

Steven Speirs
SimpleViewer Support Team.