Topic: HELP: Postcard viewer not embedded properly

Can someone check this code for me?  I can't get the postcard viewer to display. : (

www.thepersianphotographer.com/index.html

Re: HELP: Postcard viewer not embedded properly

You are using SWFObject v1.5 embed code but have uploaded FlashObject v1.3d.
Upload the swfobject.js file found in the current PostcardViewer download on this page http://www.simpleviewer.net/postcardviewer/ to your http://www.thepersianphotographer.com/postcard/ folder and use the following code in the <head> section of your index.html file.

<script type="text/javascript" src="postcard/swfobject.js"></script>
Steven Speirs
SimpleViewer Support Team.

Re: HELP: Postcard viewer not embedded properly

Thank you. : )  Is there a way to embed a small version of the postcard viewer into the html page?

Re: HELP: Postcard viewer not embedded properly

You can change the dimensions by editing the "800" and "600" in the following line:

var fo = new SWFObject("postcard/viewer.swf", "viewer", "800", "600", "8", "#000000");

... where "800" is the width and "600" is the height in pixels.  Values can also be percentages of the parent container, eg:

var fo = new SWFObject("postcard/viewer.swf", "viewer", "100%", "100%", "8", "#000000");

At present, all references to files within the 'postcard' folder (swfobject.js, viewer.swf and gallery.xml) begin with a leading forward slash which should be removed, eg:

fo.addVariable("xmlDataPath", "postcard/gallery.xml");

... instead of:

fo.addVariable("xmlDataPath", "/postcard/gallery.xml");
Steven Speirs
SimpleViewer Support Team.

Re: HELP: Postcard viewer not embedded properly

They should put you on as a moderator. : )

Re: HELP: Postcard viewer not embedded properly

I was coming to post a similar question and got it answered already.  Thanks monkey!  big_smile