Topic: Multi gallery in single table; works on desktop, won't load live

Total noob here, it took me forever to compile just some 40 or so lines of code, just a test to see if I can run a column with multiple rolls of galleries.



The following page is a single column double rolled table, with both rolls embed with a SV gallery (two of the same gallery)

"TEST" folder contents
http://raymondkyeung.com/archive/TEST/index.html
http://raymondkyeung.com/archive/TEST/gallery1
http://raymondkyeung.com/archive/TEST/gallery2   

The following link has everything if someone is interested in trying it out locally.
http://raymondkyeung.com/archive/TEST/complete.zip

/gallery1 and /gallery2 were both generated by svbuilder and unaltered.


The embed worked perfectly locally
(without using full path, but simply /gallery1 instead of www.raymo.../test/gallery1/)
but doesn't do a thing online, on any browser.

I checked all permissions, paths, nothing catches my attention.


Anyone got ideas?! May be I did miss something?!


<table width="1000" border="0" cellspacing="5">
  <tr>
    <td><!--START SIMPLEVIEWER EMBED.-->
        <script type="text/javascript" src="http://raymondkyeung.com/archive/TEST/gallery1/svcore/js/simpleviewer.js"></script>
        <script type="text/javascript">
        $(document).ready(function () {
            SV.simpleviewer.load('sv-container1', '100%', '100%', 'FFFFFF',true,{baseURL: 'http://raymondkyeung.com/archive/TEST/gallery1/'});
        });
        </script>
<div id="sv-container1"></div>
        <!        <!-- END SIMPLEVIEWER EMBED -->&nbsp;</td>
  </tr>
  <tr>
    <td><!--START SIMPLEVIEWER EMBED.-->
        <script type="text/javascript" src="http://raymondkyeung.com/archive/TEST/gallery2/svcore/js/simpleviewer.js"></script>
     
        <script type="text/javascript">
        $(document).ready(function () {
            SV.simpleviewer.load('sv-container2', '100%', '100%', 'FFFFFF',true,{baseURL: 'http://raymondkyeung.com/archive/TEST/gallery2/'});
        });
        </script>
<div id="sv-container2"></div>
        <!        <!-- END SIMPLEVIEWER EMBED -->&nbsp;</td>
  </tr>
</table>



-R

Last edited by ryeung29 (2012-07-29 01:22:41)

Re: Multi gallery in single table; works on desktop, won't load live

Check that you have uploaded all your files to their correct locations.
In the code you posted, you have the line:

<script type="text/javascript" src="http://raymondkyeung.com/archive/TEST/gallery1/svcore/js/simpleviewer.js"></script>

However, going directly to http://raymondkyeung.com/archive/TEST/g … eviewer.js in a browser results in an error 404 (file not found).

The embed worked perfectly locally
(without using full path, but simply /gallery1 instead of www.raymo.../test/gallery1/)
but doesn't do a thing online, on any browser.

You can use relative instead of absolute paths if you like (both of which work fine locally and online).
For example, in your 'index.html' page, instead of:

baseURL: 'http://raymondkyeung.com/archive/TEST/gallery1/'

... you could use:

baseURL: 'gallery1/'

Also, your embedding code uses an older version of embedding code which implies that you may not be using the most recent version of SimpleViewer-Standard. You could upgrade to the latest version of SimpleViewer-Standard to eliminate any bugs that were present in previous versions. The latest version of SimpleViewer-Standard can be downloaded from this web page.
You could then change your embedding code from:

$(document).ready(function () {
    SV.simpleviewer.load('sv-container1', '100%', '100%', 'FFFFFF',true,{baseURL: 'http://raymondkyeung.com/archive/TEST/gallery1/'});
});

... to:

simpleviewer.ready(function () {
    simpleviewer.load('sv-container1', '100%', '100%', 'FFFFFF',true,{baseURL: 'http://raymondkyeung.com/archive/TEST/gallery1/'});
});
Steven Speirs
SimpleViewer Support Team.

Re: Multi gallery in single table; works on desktop, won't load live

Ok  Steven, thank you for your time and the speedy respond. So I downloaded the latest version via link from my purchase but something's not right...Both galleries ended up being the same, even though they have unique paths, baseURL, sv-container#,


http://raymondkyeung.com/archive/TEST/index.html

It's driving me crazy!!! what am I doing wrong?

here's the HTML code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simple</title>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td><!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="gallery1/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "gallery1/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container1", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container1"></div>
<!-- END SIMPLEVIEWER EMBED -->

&nbsp;</td>
  </tr>
  <tr>
    <td><!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="gallery2/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "gallery2/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container2", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container2"></div>
<!-- END SIMPLEVIEWER EMBED -->&nbsp;</td>
  </tr>
</table>
</body>
</html>

Last edited by ryeung29 (2012-07-31 22:24:57)

Re: Multi gallery in single table; works on desktop, won't load live

It's driving me crazy!!! what am I doing wrong?

Your gallery's 'svcore' folder still does not appear to have been uploaded to your web server as going to:
http://raymondkyeung.com/archive/TEST/g … eviewer.js
... still results in an error 403/404.
Check using your FTP program that you have an 'svcore' folder in your 'archive/TEST/gallery1/' folder and it might also be worthwhile checking the permissions on your folders being that an error 403 was displayed.

Also, the local preview seemed a bit funny, both galleries ended up being the same, even though they have unique paths, baseURL, sv-container#,

Use unique 'flashvars' variables for each gallery, e.g.:

var flashvars1 = {};
flashvars1.baseURL = "gallery1/";
simpleviewer.ready(function () {
    simpleviewer.load("sv-container1", "100%", "100%", "222222", true, flashvars1);
});
Steven Speirs
SimpleViewer Support Team.

Re: Multi gallery in single table; works on desktop, won't load live

WOW IT WORKED!!!!! yikes  big_smile  big_smile Thank you!
Aside from flashvar I also check permissions, turned out they were all messed up!  sad  sad

One last question please!
I am trying to make a anchor name within the table so that when someone click the "back button" inside the Viewer they will be brought back to that specific cell of the table (start of whatever gallery they were looking at). Does the xml support using the index.html#linewhatsoever?? code?

thanks again.

Re: Multi gallery in single table; works on desktop, won't load live

In order to support direct linking to specific images and to allow the browser's 'Back' button to enable the user to step back through the history of previously viewed images, you would need to use the SimpleViewer-Pro API (which requires SimpleViewer-Pro and is not supported by SimpleViewer-Standard, the free version).
Please see the Direct Linking and Back Button Support section of the 'SimpleViewer-Pro API' for details and an example which you can view the source of and modify to suit your needs.

Steven Speirs
SimpleViewer Support Team.