Mike,
First of all I would like to thank you for helping me to solve this issue. It's very much appreciated! :)
Mike Richards wrote:Try the following since you aren't using the www subdomain in your URLs.
I will try that (without any hope, because there are no subdomains on both servers) and report the effect Second reason I have little hope is that everything worked fine when I used SV Picasa template 1.9 (without Pro configuration options and using the original crossdomain.xml and the same 2 servers !!!!)
UPDATE: Please wait with what I ask below; I can't hardly believe my eyes on what I see after replacing www. with *. in crossdomain.xml. Now it's time for more testing; will come later today with an update.
Mike Richards wrote:You can see a crossdomain example working here:
This is not the example I would like to see, because it is with SVPro and not with SVPicasa template. Furthermore also the thumbimages are on the remote server as I see in the examples gallery.xml
Maybe you can delete the thumbs from the remote server and store them on your mrphotography-server first and see what happens. If test is OK, maybe a second test with the following code in the top line of the .xml to see if that is causing the problem:
showOpenButton="FALSE"
showFullscreenButton="FALSE"
watermarkURL="../../copyright_new.png"
watermarkHAlign="CENTER"
watermarkVAlign="CENTER"
stagePadding="0"
stageHPadding="0"
stageVPadding="15"
frameWidth="0"
changeImageOnHover="TRUE"
imageClickMode="OPEN_URL"
imagePreloading="PAGE"
imageFrameStyle="ROUNDED"
imageDropShadow="true"
dropShadowStrength="2"
maxImageWidth="640"
maxImageHeight="640"
imageQuality="100"
showImageNumber="TRUE"
thumbNavStyle="BIG"
thumbPosition="TOP"
thumbWidth="75"
thumbHeight="75"
thumbRows="1"
thumbColumns="6"
thumbQuality="100"
galleryStyle="CLASSIC"
enableMouseWheel="FALSE"
enableAPI="true"
textColor="FFFFFF"
frameColor="FFFFFF"
lockTopStack="true"
lockBottomStack="false"
showOverlay="ALWAYS"
imageNavColor="FFFFFF"
and of course to make it SVPicasa template in the index.html :
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript">
//SimpleViewer API setup
var svAPI; //svAPI is the object to call API methods on
//Called by SWF when API becomes available
function svComplete() {
//alert("SimpleViewer API Available");
svAPI = document.getElementById('svInstance');
}
//Called by SWF when user views an image
function svImageChange(index){
imageID = index + 1
SWFAddress.setValue("/"+imageID+"/");
}
//Called when browser back button is clicked
SWFAddress.onChange = function(){
if(svAPI.getImageIndex() != getLocationIndex()) {
svAPI.showImage(getLocationIndex());
}
}
function getLocationIndex() {
var path = SWFAddress.getValue();
var arr = path.split("/");
return arr[1] - 1;
}
//JavaScript Embed
var flashvars = {};
flashvars.enableAPI = "true";
flashvars.galleryURL = "gallery.xml";
flashvars.firstImageIndex = getLocationIndex();
var params = {};
var attributes = {};
//name and id should match getElementById() call above
attributes.id = "svInstance";
attributes.name = "svInstance";
swfobject.embedSWF("simpleviewer.swf", "sv-container", "100%", "600", "9.0.124", false, flashvars, params,attributes);
</script>
i.s.o. :
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript">
//SimpleViewer API setup
var svAPI; //svAPI is the object to call API methods on
//Called by SWF when API becomes available
function svComplete() {
//alert("SimpleViewer API Available");
svAPI = document.getElementById('svInstance');
}
//Called by SWF when user views an image
function svImageChange(index){
imageID = index + 1
SWFAddress.setValue("/"+imageID+"/");
}
//Called when browser back button is clicked
SWFAddress.onChange = function(){
if(svAPI.getImageIndex() != getLocationIndex()) {
svAPI.showImage(getLocationIndex());
}
}
function getLocationIndex() {
var path = SWFAddress.getValue();
var arr = path.split("/");
return arr[1] - 1;
}
//JavaScript Embed
var flashvars = {};
flashvars.enableAPI = "true";
flashvars.galleryURL = "gallery.xml";
flashvars.firstImageIndex = getLocationIndex();
var params = {};
var attributes = {};
//name and id should match getElementById() call above
attributes.id = "svInstance";
attributes.name = "svInstance";
$(document).ready(function () {
SV.simpleviewer.load('sv-container', '100%', '100%', '222222', true, flashvars, params, attributes);
});
</script>
Last edited by berend (2010-11-15 21:04:34)
met vriendelijke groet,
Berend