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("viewer.swf", "viewer", "100%", "100%", "8", "#474791");
fo.addVariable("preloaderColor", "0xffffff");
fo.addVariable("xmlDataPath", "gallery.xml?nocache=<%=random.randint(1, 1000000000)%>");
fo.write("flashcontent");
</script>
</div>
<%@ include file="../common/footer.html"%>
</body>
</html>
[/code]
Any idea what I am doing wrong here?
Thanks,[/code]