Topic: Embedding

I'm having problems installing a gallery on my site.  I used Dreamweaver to upload files - pretty straightforward with all files in the same folder named "custpics".  Here is my embedded code, and I hope someone can see something that might be causing my gallery not to appear.

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.jbrclothing.com/custpics/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.jbrclothing.com/custpics/index.html";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Thanks in advance for any guidance!

Re: Embedding

Your baseURL should point to the gallery folder itself (not the gallery's HTML index page within the folder).
Try using:

flashvars.baseURL = "http://www.jbrclothing.com/custpics/";
Steven Speirs
SimpleViewer Support Team.

Re: Embedding

Thanks Steve.  I tried your suggestion, still no luck.  All I get is a blank page, no error, etc)Not sure what else to do at this point, but I appreciate your help.

Re: Embedding

Please post the URL of the page into which you are trying to embed your gallery so that we can take a look.
From the code you have posted, it looks like your gallery files should be uploaded to the 'custpics/' folder but they do not seem to be there.
The embedding code contains the line:

<script type="text/javascript" src="http://www.jbrclothing.com/custpics/svcore/js/simpleviewer.js"></script>

... but going directly to http://www.jbrclothing.com/custpics/svc … eviewer.js in a browser results in an error 404 (file not found).
Make sure your gallery folder has been uploaded to the correct location on your web server.

Steven Speirs
SimpleViewer Support Team.

Re: Embedding

This is the page I'm trying to embed the gallery in:
http://www.jbrclothing.com/category-s/111.htm

Per your previous advice, this is the code I'm using:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.jbrclothing.com/vspfiles/custpics/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.jbrclothing.com/vspfiles/custpics/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

The entire gallery folder/support files are in the "custpics" folder.

Re: Embedding

Thank you for providing the URL to your web page.
However, the file http://www.jbrclothing.com/vspfiles/custpics/svcore/js/simpleviewer.js still does not exist and if your gallery folder is http://www.jbrclothing.com/vspfiles/custpics/ then the gallery's XML file should be located at http://www.jbrclothing.com/vspfiles/custpics/gallery.xml and it is not.
Make sure that your gallery files have been uploaded to the 'vspfiles/custpics/' folder on your webserver.
Just a thought but do you perhaps have a folder (containing the gallery files) within the 'vspfiles/custpics/' folder rather than just the gallery files themselves? If so, just move all the files and subfolders directly into the 'vspfiles/custpics/' folder.

Steven Speirs
SimpleViewer Support Team.

Re: Embedding

I took a look at my file structure, and I did have the gallery.xml file in my custpics folder.  When I saved the gallery, I didnt change any of the defaults, and put everything in the custpics folder (no sub-folders besides the ones automatically made like "svcore", etc).  Anyway, still not working, so I tried an iframe because there's less room for me to screw up...hehe.  Getting a 404 error, whereas before I got a blank page.  Here's my code:

<iframe src="http://www.jbrclothing.com/v/custpics/index.html" width="800" height="600" frameborder="0" scrolling="no"></iframe>

I dont see anything unusual or tricky here, just very confused.  Again, thanks for all your previous help, but I think there must be an FTP, or hosting issue at this point.

Regards,
Brent

Re: Embedding

The <iframe> will not display your gallery because the page being loaded into the <iframe> does not exist (as you have discovered).
Make sure you are uploading the files to the correct folder on your web server.
Perhaps your web host provides a folder on your web server called 'public_html' or 'htdocs' into which any files and subfolders should be uploaded in order to be publicly accessible.

Steven Speirs
SimpleViewer Support Team.

Re: Embedding

Hello,
Turns out the server automatically puts files into the "v" directory, so when I added another "v" folder, my gallery became unaccessable.  So, the east fix was to add another "/v/" to my path and that did the trick.
Just wanted to thank you for sticking it out with me and for your help - much appreciated!

Brent

Re: Embedding

I'm glad you have solved your problem. Thank you for posting back to let me know.

Steven Speirs
SimpleViewer Support Team.