Topic: gallery stopped working after upgrade from 1.7 to 1.8

I copied 2 files, swfobject.js and viewer.swf from v1.8 over my 1.7 gallery files and now when I access it I get no pictures.

I opened up the v1.8 index.htm file and noticed a reference to gallery.xml, which doesn't exist in my 1.7 installation. Instead I have a imagedata.xml.

Were there some renamed files in 1.8?

I also saw this in 1.8:

    <script type="text/javascript">
        var fo = new SWFObject&#40;"viewer.swf", "viewer", "100%", "100%", "7", "#181818"&#41;;    
        fo.addVariable&#40;"preloaderColor", "0xffffff"&#41;;
        fo.addVariable&#40;"xmlDataPath", "gallery.xml"&#41;;    
        fo.write&#40;"flashcontent"&#41;;    

I don't see it appearing in 1.7. Is this a new way of calling the viewer?

Re: gallery stopped working after upgrade from 1.7 to 1.8

Is this a new way of calling the viewer?

Yes. If you are using swfObject to embed your gallery (the recommended method for v1.8) you need this JS code in your HTML doc to load your swf.

This line:

fo.addVariable&#40;"xmlDataPath", "gallery.xml"&#41;;

specifies your XML file name.

Felix Turner
SimpleViewer Support Team.

Re: gallery stopped working after upgrade from 1.7 to 1.8

Thanks. By the way I noticed any foreign characters I enter show up as garbage. Does simpleviewer recognize unicode?

Re: gallery stopped working after upgrade from 1.7 to 1.8

check the FAQ q6

Felix Turner
SimpleViewer Support Team.