Topic: problems with embedding simpleviewer

Hi there. I am not that pro with coding etc, so please be patient with me smile

i have multiple galleries, that should be embedded within certain html pages, means one gallery per page. the folders for the different galleries are all in the same big website folder. I tried to copy code out of  the forums posts, but something just won't work. When i preview the page in IE i only get a white square (see image below).

Here's the code for one html page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>drakken 5.0 - Mixed Commissions</title>
<link href="site_css.css" rel="stylesheet" type="text/css" />
<!-- Load SWFObject -->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
       
        <!--  Gallery 1 JavaScript Embed-->
        <script type="text/javascript">
            var flashvars = {};
            flashvars.galleryURL = "gallery.xml";
            var params = {};           
            params.allowfullscreen = true;
            params.allowscriptaccess = "always";
            params.bgcolor = "FFFFFF";
            swfobject.embedSWF("simpleviewer.swf", "flashContent", "800", "700", "9.0.124", false, flashvars, params);
        </script>



<style type="text/css">
<!--
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}
a:active {
    text-decoration: none;
}
-->
</style></head>

<body>
<div id="menue" align="left">
  <table width="100%" border="0" cellspacing="20" cellpadding="0">
    <tr>
      <td width="19%" valign="top"><!-- #BeginLibraryItem "/Library/over_menue.lbi" -->
<table width="250" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><h3>home</h3>
      <h1>clients      </h1>
      <h1>blog</h1>
      <h1><a href="h_about.html">about</a></h1>
      <h3>illustrations</h3>
      <h1><a href="i_SOE.html">Sony Online Entertainment</a></h1>
      <h1><a href="i_FFG.html">Fantasy Flight Games</a></h1>
      <h1><a href="i_AEG.html">Alderac Entertainment Group</a></h1>
      <h1><a href="i_MixedCommissions.html">Mixed Commissions</a></h1>
      <h1><a href="i_PrivateWork.html">Private Work</a></h1>
      <h1><a href="i_sketches.html">Sketches</a></h1>
      <h3>Concepts</h3>
      <h1><a href="c_environments.html">Environments</a></h1>
      <h1><a href="c_CharsCreatures.html">Chars &amp; Creatures</a></h1>
      <h1><a href="c_PropsVehicles.html">Props &amp; Vehicles</a></h1></td>
  </tr>
</table>
<!-- #EndLibraryItem --></td>
      <td width="81%"><!--  Gallery 1 Div -->
        <div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://get.adobe.com/flashplayer/">Get Flash</a></div>

</td>
    </tr>
  </table>
  <h1>&nbsp;</h1>
</div>
<h1>&nbsp;</h1>
</body>
</html>


and this is what it looks like in IE:

[img]http://www.drakken.de/stuff/test.jpg[/img]

hope that makes sense

Last edited by drakken (2010-01-05 14:40:37)

Re: problems with embedding simpleviewer

Hi,

please check here for instructions on embedding multiple galleries: http://www.simpleviewer.net/simpleviewe … l#multiple

Felix Turner
SimpleViewer Support Team.

Re: problems with embedding simpleviewer

Thanks for the link.

the menu bar link 'Mixed Commissions' (see the image) points to: <h1><a href="../MixedCommissions/index.html">Mixed Commissions</a></h1>

MixedCommissions is a renamed copy of the simpleviewer web folder.

This opens the simpleviewer gallery in a new (blank) page. How do i get it to open within the div container where the 'getFlash code is? (where the white square is in the image)

Last edited by drakken (2010-01-05 14:39:32)

Re: problems with embedding simpleviewer

Now i tried to make it as simple as possible: one page and one gallery folder together in one folder. All i want is that when i preview the site in IE that it displays the simpleviewer gallery...and i just don't get it.

here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>drakken 5.0 - </title>
<link href="site_css.css" rel="stylesheet" type="text/css" />

<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 = "000000";
            swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
        </script>


</head>
<body>
<div id="menu">
<h3>home</h3>
<h1>clients </h1>
<h1>blog</h1>
<h1><a href="../h_about.html">about</a></h1>
<h3>illustrations</h3>
<h1><a href="../i_SOE.html">Sony Online Entertainment</a></h1>
<h1><a href="../i_FFG.html">Fantasy Flight Games</a></h1>
<h1><a href="../i_AEG.html">Alderac Entertainment Group</a></h1>
<h1><a href="../i_MixedCommissions.html">Mixed Commissions</a></h1>
<h1><a href="../i_PrivateWork.html">Private Work</a></h1>
<h1><a href="../i_sketches.html">Sketches</a></h1>
<h3>Concepts</h3>
<h1><a href="../c_Environments.html">Environments</a></h1>
<h1><a href="../c_CharsCreatures.html">Chars &amp; Creatures</a></h1>
<h1><a href="../c_PropsVehicles.html">Props &amp; Vehicles</a></h1>
</div>

<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://get.adobe.com/flashplayer/">Get Flash</a></div></body></html>


did i forget something?

Last edited by drakken (2010-01-05 16:59:00)

Re: problems with embedding simpleviewer

Hey Drakken - I think I might know what's happening, if you're still having this problem. I was having the same problem myself and I found that it was due to not doing a Save after making changes to the layout in SV pro. Once you've made your changes you have to go to save or save as. I use Save As and when I click on it it says "do you want to replace current Gallery.xls file? and you say okay. This updates the gallery.xls file with the new one. Then in the "embed" menu you copy the code and paste that into your html page. Once this is uploaded it should work.

Re: problems with embedding simpleviewer

If you are still having issues please post the URL for the gallery that you are having trouble with.

Mike Richards
SimpleViewer Support Team.