Topic: Embedding, external folder, results empty area.

Here is the problem

1. Working fine from the iframe. Looks like this http://screencast.com/t/cRe7cBI0K

<iframe src="/src/portfolio-3/index.html" width="1000" height="600" frameborder="0" scrolling="no"></iframe>

2. Failing with the BaseURL:  http://screencast.com/t/chXM6KFVtF 

<script type="text/javascript" src="/src/portfolio-3/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "/src/portfolio-3/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "1000px", "760px", "444444", true, flashvars);
});
</script>
<div id="sv-container"></div>

3. Any mistake in the .js file url ("/src/portfolio-3/svcore/js/qwertysimpleviewer.js") results into a working gallery. But as a free version. Like this http://screencast.com/t/6cAjOf8CZE

Here is the site:  http://art-of-photo.ru/portfolio-3/

And where is the problem? Help please!


PS1. All the files and folders are reachable.
PS2. The same results with absolute urls.



PROBLEM SOLVED!
the problem was in conflicting of the wp-simpleviewer plugin (with a free version of files) with the direct html embeding. Updating the free simpleviewer files to pro version in the plugin folder solved the problem

Thanks to everybody!

Last edited by rudometkin (2012-03-06 11:12:09)

Re: Embedding, external folder, results empty area.

Any mistake in the .js file url ("/src/portfolio-3/svcore/js/qwertysimpleviewer.js") results into a working gallery.

The 'svcore' folder should remain intact. There should never be any need to move or rename any files within this folder.
If you were to rename the 'simpleviewer.js file, this should result in a non-working gallery.

Updating the free simpleviewer files to pro version in the plugin folder solved the problem

It seems unlikely that a gallery would not work with the Standard 'svcore' folder but would work with the Pro 'svcore' folder.
However, I am glad that your gallery is now working fine.

Steven Speirs
SimpleViewer Support Team.

Re: Embedding, external folder, results empty area.

Steven Speirs wrote:

If you were to rename the 'simpleviewer.js file, this should result in a non-working gallery.

Not to rename, but to make a mistake in the url.  So, the file was not loading t that time.

It seems unlikely that a gallery would not work with the Standard 'svcore' folder but would work with the Pro 'svcore' folder. However, I am glad that your gallery is now working fine.

It would not work because js file was loading twice: in the header from plugin gallery and in the code while embedding. And the main problem was in different versions of that files: free and pro

<script type='text/javascript' src='http://art-of-photo.ru/life/wp-content/plugins/wp-simpleviewer/svcore/js/simpleviewer.js?ver=2.3.0'> 
.....
<script type="text/javascript" src="/src/portfolio-3/svcore/js/simpleviewer.js"></script>

Last edited by rudometkin (2012-03-06 11:13:07)

Re: Embedding, external folder, results empty area.

Thank you for clarifying these points.

Steven Speirs
SimpleViewer Support Team.