Mike,

I didn't know about these AS differences; knowing that I should have had more faith.

Any how IT WORKS NOW FINE (your latest example as well as with me). A minor bug-report I get is javascript related:


Errordetails webpage

Usersagent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 15 Nov 2010 21:17:25 UTC


Message: 'svAPI' isempty or noobject
Line: 30
Character: 21
Code: 0

Maybe you guys can repair this?

Anyhow I am very happy today  :)  :)  :)  and I really thank you for not giving up te help me!

And yeh ... maybe a good idea to elaborate a little bit more on the suppot pages about crossdomain.xml and differences for AS 2 and AS3.

Thanks, thanks and have a good day.

best regards,
Berend

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>
Mike Richards wrote:

Every time we have seen an issue like this it is most likey either a cross domain issue or a hot-linking image protection issue. If the crossdomain.xml didn't do it for you, you should double check your servers setting and .htaccess to make sure you are not using image protection options.

I will see if this can be the case, but if so: WHY DO THE MAIN IMAGES ON THE REMOTE SERVER THEN LOAD IF I MOVE THE MOUSE OVER THE THUMBNAILS?

Maybe you can show me an example WHERE IT WORKS! I mean a example a a gallery made with the SV Picasa template V2.0.3 and gallery.xml modified with SimpleViewerPRO V2.1.x configuration options.

UPDATE:
1. The remote server is UNIX and there is no .htaccess file on it
2. The server with SV gallery is WINDOWS and I checked with the provider per phone; no hot-linking image protection and no firewall issue. He confirms that image-loading on mouseover cannot be possible when hot-linking image protection is the case on server or by firewall.

Mike Richards wrote:

What is the purpose of ?xml=+d in your galleryURL var?

XML has the issue that it will stay in the cache of the browser. By giving it a unique parameter (date) I hoped to achieve that each time the .xml is reloaded from the server. If this works (I'm not sure) you don't need to close the browser before you can see the effect of changes made in your .xml file.

Wirh regard to my problem/ issue: Any idee how to solve the problem (where to debug)?

Images don't load for me! I'm using MS IE8.

Be aware I posted 2 links to you:

OK (images on same server) = http://fotograaf-evenementen.nl/galerie … ex.html#/1

NOT OK (images on remote server) = http://fotograaf-evenementen.nl/galerie … ex.html#/1

Are both links loading the images for you?

In the meantime I stored 'crossdomain.xml' on both servers, but it didn't help.

The other issue "svAPI" : I was already wondering if I had understood you well.
I will correct the replacement as suggested now and see what happens. But as you said: another issue.

Mike,

Thanks for looking into the issue. But  :(  unfortunetly it didn't help.

I changed the crossdomain.xml as you suggested and uploaded it to the root and all relevant directories on the remote server (hhuisjes.com). Then tested the index.html and still the same problem. Do I need to upload crossdomain.xml also to the server/domain where teh gallery is stored? I am not that familiar with the 'crossdomainPolicy'. From your support pages I understand that upload only to the server where the main images are stored should be OK!
I believe this cannot be the cause of the problem because moving the mouse over the images will result in loading the images.

I deleted the lines as you suggested and tested index.html. No difference, so it's not an issue of conflicting .js scripts, isn't it.

Finally I replaced the code for direct linking as you suggested and tested index.html. Also no solution for the problem. Although I now get the Javascript error "svAPI not defined" where, before the replacement, I got "svAPI is empty or no object".

When you look carefully you see that index.html is not loading the images from the remote server (per PAGE) and stops loading the NEXT image.
So it must be a bug somewhere in the loading instructions when you have your main images stored on another remote server.
Do you agree?

You have to  ;)  because it works great when everything (including the main images) is stored on the same server/ domain; see: http://fotograaf-evenementen.nl/galerie … ex.html#/1 ; although without the suggestions for changes you made.

Felix, Mike,

Both your comments are not the issue.

The problem is that when the SV is called, the mainimage (on the other server/domain) will not load/ show up. You first have to mouse-over the thumnails before the main images show.

This despite I have set imagePreloading="PAGE"

When images are on the same server/domain .... no problem.

Please look at http://fotograaf-evenementen.nl/galerie … ex.html#/1 to see what's happening.

When everything is stored at the same domain/server this works fine:

<image imageURL="images/baa_0782.jpg" thumbURL="thumbnails/baa_0782.jpg" linkURL="../../../f.php?nr=baa_0782.jpg&e=20101114-Test-Evenement&r=Archief 2010" linkTarget="main" >
 <caption><![CDATA[<font size="14"><font size="14"><b>Stap 3: </b><U>Bestel <b>deze</b> foto met een klik.</U></font> &#0187;&#0187;&#0187;</font>]]></caption>

When de mainimages are stored on another domain/server this doesn't work:

<image imageURL="http://www.otherdomain.com/dir1/subdir1/subsubdir1/images/baa_0782.jpg" thumbURL="thumbnails/baa_0782.jpg" linkURL="../../../f.php?nr=baa_0782.jpg&e=20101114-Test-Evenement&r=Archief 2010" linkTarget="main" >
 <caption><![CDATA[<font size="14"><font size="14"><b>Stap 3: </b><U>Bestel <b>deze</b> foto met een klik.</U></font> &#0187;&#0187;&#0187;</font>]]></caption> 

I wonder how the pathing has to be in this case. Can absolute pathing and relative pathing be combined? What is the reference root when also relative paths are used?

What Angazi is suggesting is a feature I also would like to see in the next V2.x, because it is fast, userfriendly and saves al lot of bandwith compared to imagePreloading = "ALL" configuration option.

But first I need to solve my current loading problem.

I have saved the main images on a different domain to save expensive diskspace (thousands of images!) and work with galleries made by SV Picasa template V2.0.x. The gallery.xml file is modified for several of the SV PRO 2.1 configuration options.

When I embed the gallery in a HTML or PHP page it works OK (a little bid slow in loading but that's probely because the main images have to come from another domain/server. No setting used for imagePreloading, so by default per page (6 images).

However when I incorporate the svAPI for reason of getting back the imageIndex by the browsers back button or javascript: history.back(-2) the images wouldn't load automatically and the overlay (with the Caption) neither. After cliccking around on the thumnails the image shows first and some cliks later also the overlay with Caption.

I would appreciate if one of the experts will take a look at http://fotograaf-evenementen.nl/galerie … ex.html#/1
; this page gives a script error on line 31 {svAPI is empty or no object}.

I took the code with API from the demo-page on your website.

Steven Speirs wrote:

You have these characters »»» in the captions and they are causing XML parsing errors.
Replace each » with &#0187;

Ok. I see the parsing error and I did the replacement as you suggested. However this doesn't solve anything; after the replacement I still get the parsing error where it's now character 187 in line 41. So I have to count -:)

But I cannot understand that this is te cause of the real issue. I already use this CAPTION for over 4 years in different websites without any problem of parsing errors.

It must be something else that prevents the "remote images" to show up.

Nevertheless ... I will try to find out what's causing the .xml parsing error in XSL format.


UPDATE 1: When I remove the whole CAPTION from the XML file I have NO PARSING ERROR anymore and ...... IT SEEMS TO WORK. Now to find out what causes the parsing problem in the CAPTION.

But I still don't understand why it works perfectly with the 'faulty Caption' with V 1.8 (since april 2006) and V 1.9 (last month) ????? :(

UPDATE 2: Steven, you were right. The characters »»» caused the problem.

Thanks for your help!  ;) I am now back to the functionality I had before with V 1.9, but I have learned much about the possibilities of the V2.1 PRO version in combination with SV Picasa template V 2.0.

Next I need to retrieve the imageIndex with SV Api in order to use browser back-button or javascript history.back() and land on the image I last viewed.

Prefix your absolute URLs with 'http://'

I already tested that and it didn't help. I have adapted the .xml again with the "http://" infront of the URL.

A chevren = ' ? A double chevron = "? Escape double chevron = \" i.s.o. " in the captions?

Steven Speirs wrote:

Post the URL to the gallery and I'll take a look.

http://fotograaf-evenementen.nl/galerie … index.html

No! That not the issue. I have crossdomain.xml installed in the root and all directory-/ folder-levels down of the "remote server/domain" where the images are stored, already from the beginning. I wonder if I'm hindered in testing the changs I make because of "caching" on my PC, although I added a meta-tag to prevent caching to the index.html file.

I want to store the main images on a different domain (read : server) for reason of cheap disk space.

I put in the .xml file the absolute path to the main image as follows:

<image imageURL="http://www.mijndomein.com/archief_opslag/Archief 2010/Test Galery/images/baa_0552.jpg" thumbURL="thumbnails/baa_0552.jpg" linkURL="" linkTarget="" >
    <caption><![CDATA[<font size="14"><A href="../../../f.php?nr=baa_0552.jpg&e=Test Galery&r=" target="main"><font size="14"><b>Stap 3: </b><U>Bestel <b>deze</b> foto.</U></font></A>&nbsp;»»»</font>]]></caption>
</image>

It didn't work ... the main image doesn/t/ show up! Now first my dinner.

Steven Speirs wrote:

In v2.0, each image and thumbnail URL can be specified separately (via relative or absolute paths) using imageURL and thumbURL attributes in each <image> tag.

Steven,

I got the point! It makes it more complicated to generate the right .xml file via SV Picasa template. I wil work on it later today and report progress here.
It's now dinner time here in the Netherlands and I'm hungry.

Steven,

Thanks! I changed imagepath to imageURL but I still don't get the images placed on the other domain. It still takes the images placed on the domain where the index.html is placed.

So it looks like config option "imageURL" is also ignored.

I embedded in the HTML:

        <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="simpleviewer.js"></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
        <script type="text/javascript">
            var flashvars = {};
            flashvars.galleryURL = "galleryprototype.xml";
            var params = {};           
            params.allowfullscreen = true;
            params.allowscriptaccess = "always";
            params.bgcolor = "ffffff";
            swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
        </script>

berend wrote:

I'm now building a new header.xml with the configuration I need.

I have build a new header.xml and created a gallery via SV Picasa template. In the gallery folder I have also the .swf , simpleviewer.js and jquery-1.3.2.min.js of svBuilder-Pro (out of the 'svcore' folder).

The created gallery.xml looks now like:

<?xml version="1.0" encoding="utf-8" ?>
<simpleviewergallery
   
    title="Evenement"
    showOpenButton="FALSE"
    showFullscreenButton="FALSE"
    watermarkURL="../../copyright_new.png"
    stagePadding="0"
    stageHPadding="0"
    stageVPadding="15"
    frameWidth="0"
    imageFrameStyle="ROUNDED"
    imageDropShadow="true"
    dropShadowStrength="2"
    maxImageWidth="640"
    maxImageHeight="640"
    imagePath="http://www.mijndomein.com/archief_opslag/Archief 2010/Test Galery/"
    imageQuality="100"
    showImageNumber="TRUE"
    thumbNavStyle="BIG"
    thumbPosition="TOP"
    thumbWidth="75"
    thumbHeight="75"
    thumbRows="1"
    thumbColumns="6"
    thumbPath="thumbnails/"
    thumbQuality="100"
    galleryStyle="CLASSIC"
    enableMouseWheel="true"
    enableAPI="true"
    textColor="FFFFFF"
    frameColor="FFFFFF"
    lockTopStack="true"
    lockBottomStack="false"
    showOverlay="ALWAYS"
    imageNavColor="FFFFFF"
>

<image imageURL="images/baa_0552.jpg" thumbURL="thumbnails/baa_0552.jpg" linkURL="" linkTarget="" >
    <caption><![CDATA[<font size="14"><A href="../../../f.php?nr=baa_0552.jpg&e=Test Galery&r=Archief 2010" target="main"><font size="14"><b>Stap 3: </b><U>Bestel <b>deze</b> foto.</U></font></A>&nbsp;»»»</font>]]></caption>
</image><image imageURL="images/baa_0554.jpg" thumbURL="thumbnails/baa_0554.jpg" linkURL="" linkTarget="" >
    <caption><![CDATA[<font size="14"><A href="../../../f.php?nr=baa_0554.jpg&e=Test Galery&r=Archief 2010" target="main"><font size="14"><b>Stap 3: </b><U>Bestel <b>deze</b> foto.</U></font></A>&nbsp;»»»</font>]]></caption>
</image>

</simpleviewergallery>

The Config options "watermarkURL" and "imagePath" won't work.

Is there anything I'm doing wrong?

UPDATE:

The Config options "watermarkURL" and "imagePath" won't work.

I have "watermarkURL" now working correctly.

That's what I absolutely don't want to do: Use svBuilder-Pro to convert v2.0.3 galleries to v2.1.

What is needed to update the SV Picasa template to V2.1? I'm now building a new header.xml with the configuration I need. Is anything more required?

When can we expect your upgrade of SV Picasa templste?

Mike,

I bought the SV PRO V2.1 but I can't get it to work with SV Picasa template V2.?.

I started a new topic on this at http://www.simpleviewer.net/forum/viewt … ?pid=30951

I installed the latest SVPicasa template in Picasa3 and bought the SV PRO2.1 recentley.

Now I want them to work together, so I followed instruction on http://www.simpleviewer.net/simpleviewe … tml#picasa

Then I made a gallery but it doesn't show up in my browser; I get javascript errors related to .js files.

The latest SVPicasa template as such works fine and SV PRO V2.1, using svBuilder_PRO also works fine (although I am not yet sure if all the claimed option will work because I didn't yet test it extensively).

I would appreciate if there will be an extensive instructie "How to work with SV PRO 2.1 and SV Picasa template V2"; as a matter of facts I can't understand it is not yet there!!

Note: This a following topic on http://www.simpleviewer.net/forum/viewt … ?pid=30952

Hello Mike,

Thanks for your reply. I think that the functionality of SimpleViewer PRO is what I need.

I did some further research to understand how to proceed, but didn't find the right answers.

Do I really need a PRO license or can it also be made available for the free versions? The needed file "swfaddress.js" can be easily downloaded. Can I also download the required API Controls somewhere?

I am not unwilling to buy SimpleViewer PRO but it is for a customer. So I need to be 100% it solves the problem. I cannot find usable info on you website how to go further once having bought the PRO version. Remember I need to use it as SV template with Picasa!

Is there somewhere a clear documentation how to upgrade the free SV 1.8 template for Picasa with the Javascript API Controls?

And can I parse the "index of the current image" [output of API Method getImageIndex()] to the next 2 pages and then go back 2 steps in history and landing on the same index of the current image ?

Awaiting your answers,

best regard,

Berend

Is the issue well explained?
If not please tell me.
If yes, I would appreciate some reaction.

Addition:
Telepathy or not, but the moderator reacted at the moment I sent this reply the first time.

I work with Picasa & SimpleViewer template [1.9] and i would like to recall dynamicaly the itemnumber of the picture I viewed last before I was redirected to another page.

Let me explain.

I have in the gallery.xml in the <caption> CDATA a link to an order-page, which make me leave the index/ default page in the gallery. Let's say I was on the 19th picture of the gallery and then clicked to order.

After making the orderline I would like to go back to the index/ default page of the gallery I left, but .... then starting with picture/ itme no 19 (despite of the name of that picture).

When I use clientside javascript history.back() the gallery will start again with the first image.

QUESTION: Is there a way to get back the index/ default page of the gallery at the itemnumber where I left it? If YES please tell which version (Lite or PRO) I need for that and, if possible, show me an working example.

Thanks in advance for your replies.

I understand that it is not a high priority bug (however more people face the problem), but  :?: I don't see the the easy work-around yet!

I assume you don't mean shortening the URL to be the easy work around.

Please explain how SV Pro will help me with the work around as you suggested before. Thanks in advance. :P

It sounds like you are trying to add links with long URLs to your SimpleViewer caption text.

YES I AM !!

There are 2 possible work-arounds:

1) Buy SV-PRO and publish as Flash 8.

2) Use shorter URLs

My comment and questions:

1) I don't have Macromedia Flash Professional 8 !! So, I think it make no sense to buy SV PRO. Next, I can't find anywhere that the text link URL support is different with Flash 8.

If this works with Flash 8 .... why can't you update SV Picassa V1.8 template so that it is published as Flash 8.

2) Yes, I did. This gives me in my actual case about 100 charakters for defining name of Galery and name of Picture. But it is still a problem as you should understand by now.

Of course I'm willing to buy SV Pro if I can use it (without Macromedia Flash Professional 8, which it too expensive for me) in the Picassa template and understand that it will solve my problem (which I do not yet!).

Your further advice is appreciated. Thanks in advance.