Topic: Embed Outside of Folder

Hi,

I'm trying to post a photo gallery onto my home page, so I can't have the page within the same folder as the gallery itself.  I modified both Javascript tags to point to the correct location, but am receiving a gallery not found message.  I have version 1.9.  Below is my modified code:

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

     <style type="text/css">   
    /* hide from ie on mac \*/
   
    #flashcontent {
        height: 100%;
    }
    </style>
   
     <div id="flashcontent"></div>   
    <script type="text/javascript">

        var fo = new SWFObject("HomePageRotator/web/viewer.swf", "viewer", "900", "600", "8", "#FFFFCC");

        fo.write("flashcontent");   
    </script>   


Any help as to what I am doing wrong or any suggestions would be greatly appreciated.

Thanks,

--Ryan

Re: Embed Outside of Folder

You will need to add fo.addVariable("xmlDataPath", "HomePageRotator/web/gallery.xml"); right before  fo.write("flashcontent");

Mike Richards
SimpleViewer Support Team.

Re: Embed Outside of Folder

miker wrote:

You will need to add fo.addVariable("xmlDataPath", "HomePageRotator/web/gallery.xml"); right before  fo.write("flashcontent");

Thank you.  It works perfect now.

--Ryan