Topic: Simpleviewer run problem

Hey everyone,

i've got a problem with my simpleviewer. I implicated simpleviewer on one of my websites and it doesn't work properly. When I view the page with the simpleviewer with Safari on my Mac, it works fine. But if I trie to view the viewer on IE on a PC it doesn't work. The browser keeps trying to open the viewer but it won't. Is there someting i've done wrong to create this problem? Please, some one help me..

thanks in advance,

wouter

Re: Simpleviewer run problem

what's your url?

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: Simpleviewer run problem

hey,

the url for the website are:

1) http://www.arubarentavilla.com/gallery_ … _view.html

2)http://www.arubarentavilla.com/gallery_ … tpunt.html

3)http://www.arubarentavilla.com/gallery_ … _ruby.html

On these url's i've implemented a simpleviewer.

Hope you can find the problem.

Do you also need the XML??

wouter

Re: Simpleviewer run problem

Try using the recommended swfobject.js file to define the viewer.swf

( you can also use it for  the header.swf )

look at the index.html in your SV web folder to see an example


it is working in FF , btw

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: Simpleviewer run problem

Hey,

thanks for your fast reaction. I know it's stupid, but I don't quite follow..
I just started using xml and js so I'm still learning.

Do I need to change something in all the files swfobject.js
or what do you mean with "using the recommended swfobject.js to define the viewer.swf"?

thanks in advance!

wouter

Re: Simpleviewer run problem

look at the index.html example to see swfobject.js in action

set your page up in a similar way

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http&#58;//www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=&#40;0014&#41;about&#58;internet -->
<html xmlns="http&#58;//www.w3.org/1999/xhtml" xml&#58;lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SimpleViewer</title>
<!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">    
    /* hide from ie on mac */
    html &#123;
        height&#58; 100%;
        overflow&#58; hidden;
    &#125;
    
    #flashcontent &#123;
        height&#58; 100%;
    &#125;
    /* end hide */

    body &#123;
        height&#58; 100%;
        margin&#58; 0;
        padding&#58; 0;
        background-color&#58; #181818;
        color&#58;#ffffff;
    &#125;
</style>
</head>
<body>
    <div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http&#58;//www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</div>    
    <script type="text/javascript">
        var fo = new SWFObject&#40;"viewer.swf", "viewer", "100%", "100%", "7", "#181818"&#41;;    
        fo.addVariable&#40;"preloaderColor", "0xffffff"&#41;;
        fo.addVariable&#40;"xmlDataPath", "gallery.xml"&#41;;    
        fo.write&#40;"flashcontent"&#41;;    
    </script>    
</body>
</html>
Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: Simpleviewer run problem

ok, I understand that my code is different then the code in the index of the simpleviewer. But I'm afraid to change the whole code into what you sent me because I don't want to screw up the page. How should I insert the code from the index.html in the SV map into the code of my page?

this is the part that should change:

<td align="center" valign="top" width="606" height="456">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="450">
            <param name="movie" value="gallery_ocean_view/viewer.swf">
            <param name="quality" value="high" />
            <param name="BGCOLOR" value="FFFFFF" />
            <param name="scale" value="noscale" />
            <param name="wmode" value="transparent">
            <embed src="viewer.swf" width="680" height="450" scale="noscale" bgcolor="#ffffff" "wmode" value="transparent" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" />
            </embed>
          </object></td>



---------------

can I just replace this with the code from the index.html
what about the source (gallery_ocean_view/viewer.swf). Do I put this in front of every viewer.swf in the new code?

thanks in advance

wouter

Re: Simpleviewer run problem

work on a copy, just in case, but you won't screw it up.
Basically yes, replace as shown above. delete <object> to </object>
and replace with the swfobject code

can I just replace this with the code from the index.html
what about the source (gallery_ocean_view/viewer.swf). Do I put this in front of every viewer.swf in the new code?

yes, use your path - gallery_ocean_view/viewer.swf in lieu of viewer.swf

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!