Topic: So close...


I am trying to embed 2 different galleries to two different pages on my site., and

I have specific folders for each living in my root directory(one labeled photography, the other design), but there must be some kind of path issues, as the galleries are not found.

The code for the photos page is

<script type="text/javascript" src="photography/swfobject.js"></script>...

and body:

<div id="mainContent"><!-- InstanceBeginEditable name="Editable Region" -->
    <h1 align="center"></h1>    
<p align="center">

<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player. 
<a href="">Get Flash.</a></div>
<script type="text/javascript">
var fo = new SWFObject("photography/viewer.swf", "viewer", "80%", "600", "8", "#333333");
  <!-- InstanceEndEditable -->
  <!-- end #mainContent --></div>

My gallery.xml reads:

<?xml version="1.0" encoding="UTF-8"?>
<simpleviewergallery maxImageWidth="1024" maxImageHeight="1024" textColor="0xFFFFFF" frameColor="0xFFFFFF" frameWidth="0" stagePadding="40" navPadding="40" thumbnailColumns="3" thumbnailRows="3" navPosition="left" vAlign="center" hAlign="center" title="photography" enableRightClickOpen="false" backgroundImagePath="" imagePath="photography/images/" thumbPath="photography/thumbnails/"><image>

Thanks in advance for any advice.

Re: So close...

Your gallery HTMLs are not in the same folder as the actual gallery so in order for the viewer.swf to know there the gallery.xml is located you need to add fo.addVariable("xmlDataPath", "theFolderName/gallery.xml"); before fo.write("flashcontent");

for example:

<script type="text/javascript">
var fo = new SWFObject("photography/viewer.swf", "viewer", "80%", "600", "8", "#333333");
fo.addVariable("xmlDataPath", "photography/gallery.xml");
</script> … tions.html

Mike Richards
SimpleViewer Support Team.

Re: So close...

Success!  You are a magician, an alchemist, and a master physicist rolled into one ninjellic form.

Multiple thanks.