Topic: SimpleViawer from python PSP page

Hello,

I'm using mod_python PSP to write html pages; this is close to what it is done with PHP. For our photoclub web site, I want to make a custom page (in PSP) to integrate the SimpleViewer gallery. But it does not work: I get a blank flash stuff. Here is my PSP page, which is in the same folder than index.php:

[code]
<?xml version="1.0" encoding="ISO-8859-1"?>
<html>
<%@ include file="../common/head.html"%>
<%
import random
%>
    <body>
<%@ include file="../common/menus.html"%>
        <div id="main">

            <div id='main-title'>
                <img src="../pict/main-title.png" />
            </div>

            <div id="flashcontent" />
            <script type="text/javascript">
                var fo = new SWFObject&#40;"viewer.swf", "viewer", "100%", "100%", "8", "#474791"&#41;;
                fo.addVariable&#40;"preloaderColor", "0xffffff"&#41;;
                fo.addVariable&#40;"xmlDataPath", "gallery.xml?nocache=<%=random.randint&#40;1, 1000000000&#41;%>"&#41;;
                fo.write&#40;"flashcontent"&#41;;
            </script>

        </div>

<%@ include file="../common/footer.html"%>
    </body>
</html>
[/code]

Any idea what I am doing wrong here?

Thanks,[/code]

2

Re: SimpleViawer from python PSP page

DELETED

Re: SimpleViawer from python PSP page

Sorry: in the head.html page, which is included with the psp directive.

It works, because I do have a SWFObject (I  can see if I right-click on the window). But there is nothing inside...

4

Re: SimpleViawer from python PSP page

DELETED

Re: SimpleViawer from python PSP page

No, I'm too new to the forum... I have to wait 2 or 3 more days wink

6

Re: SimpleViawer from python PSP page

DELETED

Re: SimpleViawer from python PSP page

Ok smile

The working page is here (generated with svmanager):

www dot clubphotobiviers dot org/gallery

My custom page is here:

www dot clubphotobiviers dot org/gallery/gallery dot psp

8

Re: SimpleViawer from python PSP page

DELETED

Re: SimpleViawer from python PSP page

Ok, I fixed the error. But still have the issue.

Where do I get swfobject-2.0 from?

10

Re: SimpleViawer from python PSP page

DELETED

11

Re: SimpleViawer from python PSP page

DELETED

12

Re: SimpleViawer from python PSP page

There is something strange: both pages work (without the photos, but I guess this is because it can't load them from a remote site: I can see crosses instead) !

I tried to do as you did, without success sad

It seems to be a serveur config issue...

13

Re: SimpleViawer from python PSP page

DELETED

14

Re: SimpleViawer from python PSP page

DELETED

15

Re: SimpleViawer from python PSP page

I think this is because we changed our server a few days ago; DNS may not be completly synchronized from your location (but it works fine from here).

16

Re: SimpleViawer from python PSP page

DELETED

17

Re: SimpleViawer from python PSP page

Yes, you are right. Don't know what is the problem...

18

Re: SimpleViawer from python PSP page

Ok, I finaly got it running. It was because I had a base href in the header, so SimpleViewer was looking for all stuffs in the wrong dir!

The only remaining problem is the window size. I would liek it to be expanded to the complete height, but it does not work...

19

Re: SimpleViawer from python PSP page

DELETED

20

Re: SimpleViawer from python PSP page

The SimpleViewer (SWFObject) window. If opened alone, it vertically fits the navigator window. When embedded in my page, it doesn't.

I think this is a html/css problem, so I don't want to bother you here. I fixed the height in pixels, so this is fine for now.

21

Re: SimpleViawer from python PSP page

DELETED

22

Re: SimpleViawer from python PSP page

Not exactly; I would like the same behaviour as in its own window, ie fits the window on large screens, and reduced on smaller screens...

23

Re: SimpleViawer from python PSP page

DELETED

24

Re: SimpleViawer from python PSP page

Thanks for the tips!

25

Re: SimpleViawer from python PSP page

DELETED