Topic: So Close...so close...

Hi.

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

http://www.iamshawnrice.com/photo.html, and http://www.iamshawnrice.com/design.html.

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

<head>
<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="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
<script type="text/javascript">
var fo = new SWFObject("photography/viewer.swf", "viewer", "80%", "600", "8", "#333333");
fo.write("flashcontent");    
</script>
</p>
  <!-- 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...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");
fo.write("flashcontent");    
</script>

http://simpleviewer.net/simpleviewer/su … tions.html
http://simpleviewer.net/simpleviewer/support/v1_9/

Mike Richards
SimpleViewer Support Team.

Re: So Close...so close...

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


Multiple thanks.