Topic: Simple embedding problem - thanks for your help !

Hey guys,

I have a simple problem with embedding a gallery.
I already looked and read 10x the simpleviewer help, but I can't make it work.

I have a php page where I want the simpleviewer gallery to be embedded in.
The gallery files are located in a subfolder called "projects".

Could you let me know what I have to change in the embedding code so that it works.. ?


<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->


THANK YOU !

Re: Simple embedding problem - thanks for your help !

The answer depends on what you mean by 'gallery files'.
Which of the following is/are in the 'projects' folder: 'gallery.xml' file; the 'images' and 'thumbs' folders; the 'svcore' folder?

If the 'gallery.xml' file and the 'images' and 'thumbs' folders are in the 'projects' folder, then your embedding code should be:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "projects/";
flashvars.galleryURL = "gallery.xml";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

If the 'svcore' folder is also in the 'projects' folder, then the embedding code should be:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript">
var svCoreURL = 'projects/svcore/';
</script>
<script type="text/javascript" src="projects/svcore/js/simpleviewer.js"></script><script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "projects/";
flashvars.galleryURL = "gallery.xml";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Use of the baseURL option can be found here: http://simpleviewer.net/simpleviewer/pr … .html#html
Use of an external 'svcore' folder can be found here: http://simpleviewer.net/simpleviewer/su … tml#svcore

Steven Speirs
SimpleViewer Support Team.

Re: Simple embedding problem - thanks for your help !

thank you so much ! it works !