Topic: Ajaxfiles and postcard viewer

I am changing the site into a single page site, with ssi (all works fine) and ajaxinclusions.
all ajax inclusions are directed to the centercolumn with lines like these.

part of menu.shtml

<li><a href="javascript:ajaxpage('ajaxfiles/foto.htm', 'centercolumn');" onmouseover="change('galerij.jpg')" onmouseout="change('standaard.png')">2 Maart 2012</a></li>

This is just a snippet from my menu.shtml

I also try to embed postcard viewer the same way with this htm file to embed in the centercolumn. This is the same wich is adressed in the line from my menu.shtml above.


<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">Deze Viewer vereist JavaScript en de Flash Player. <a href="">Hier gratis te downloaden.</a> </div>   
    <script type="text/javascript">
        var fo = new SWFObject("viewer.swf", "viewer", "90%", "1000", "8", "#005300");       
        //Optional Configuration
        //fo.addVariable("langOpenImage", "Open Image in New Window");
        //fo.addVariable("langAbout", "About");   
        fo.addVariable("xmlURL", "2maart2012.xml");                   
        fo.addParam("wmode", "transparent");

Nothing wrong with it I thought, but all I see is get javascript.
all other galleries work great and are separate html files.

But to get this fine viewer into a singlepage website is a tough one for me.
Maybe you guys can help me out

Re: Ajaxfiles and postcard viewer

Check that your 'swfobject.js' file in the correct location on your web server.
Also, it might help if I were to see the page in action (and the gallery failing to display). Please post the URL to your web page, if possible, so that I can try to help further.

Steven Speirs
SimpleViewer Support Team

Re: Ajaxfiles and postcard viewer

Here is the link to the second try of the site

In menu go to "Galerij -> Maart -> 2 maart 2012"

all other photo galleries are another page and work fine
the included file foto.htm  is inside the folder ajaxfiles

in the folder ajaxfiles is also swfobjext.js and viewer.swf included
because of not working I also included thse 2 files into the public_html

Re: Ajaxfiles and postcard viewer

Try embedding the gallery using an <iframe> instead of using embedding code on your 'foto.htm' page.

(1) Create your PostcardViewer gallery
(2) Upload your entire PostcardViewer gallery folder (not just the contents) to your web server
(3) In your 'foto.html' file, use the following code:

<iframe src="gallery_folder/index.html" width="800" height="600" frameborder="0" scrolling="no"></iframe>

... making sure that the 'src' attribute of the <iframe> points towards your the 'index.html' file inside your gallery folder.

Steven Speirs
SimpleViewer Support Team

5 (edited by hveeman 2012-05-23 07:19:45)

Re: Ajaxfiles and postcard viewer

Thank you very much, it works like a charm.

I didn't know that tric of getting another html page, but it did also solve another problem i was coping with.
:D  :D  :D  :D  :D