[mod_python] link to image files broken

Vincent Wong vincentwong at ionetbiz.com
Fri Jul 6 14:18:45 EST 2001


these are the test.py and thanks.html

---test.py---


import os, sys
def saveform(req):
  input = open('../../thanks.html', 'r')

  return input.read()


---thanks.html---

<html>
<head>
<title>Desa Millennia E-Community</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_preloadImages() { file://v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { file://v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_findObj(n, d) { file://v4.0
  var p,i,x;  if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { file://v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
file://-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0"
marginwidth="0" marginheight="0" background="main/002darkgreen.gif"
onLoad="MM_preloadImages('main/016community1.gif','main/017security1.gif','m
ain/018events1.gif','main/019onlinepay1.gif','main/20onlinebook1.gif','main/
21shopping1.gif','main/22food1.gif','main/23entertain1.gif','main/24gettinga
round1.gif','main/25thetown1.gif','main/26news1.gif','main/27technical1.gif'
,'main/28infodesk1.gif','main/29faq1.gif','main/41a.gif','main/015home1.gif'
)">
<div align="center">
  <table width="100%" border="0" cellspacing="0" cellpadding="0"
bgcolor="#FFFFFF">
    <tr>
      <td>
        <div align="center"><img src="main/000none.gif" width="10"
height="10"><br>
          <img src="main/00logo.gif" width="197" height="38"><img
src="main/000none.gif" width="80" height="8">
          <img src="main/00newlaunch_banner.gif" width="480" height="60">
<img src="main/000none.gif" width="20" height="8"><br>
          <img src="main/000none.gif" width="10" height="3"></div>
      </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="3" background="main/001blackwhiteline.gif"><img
src="main/000none.gif" width="1" height="1"></td>
    </tr>
  </table>
  <table width="761" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><br>
        <table width="767" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="375"><img src="main/000none.gif" width="175"
height="1"><img src="main/45.gif" width="112" height="41"></td>
            <td width="386">
              <table width="100%" border="0" cellspacing="0"
cellpadding="0">
                <tr>
                  <td><b><font face="Arial, Helvetica, sans-serif" size="1"
color="#CCCCCC">Username
                    :<img src="main/000none.gif" width="10"
height="8"></font></b></td>
                  <td>
                    <input type="text" name="textfield" size="10">
                    <b><font face="Arial, Helvetica, sans-serif" size="1"
color="#CCCCCC"><img src="main/000none.gif" width="20"
height="8"></font></b>
                  </td>
                  <td><b><font face="Arial, Helvetica, sans-serif" size="1"
color="#CCCCCC">Password
                    :<img src="main/000none.gif" width="10" height="8">
</font></b></td>
                  <td>
                    <input type="text" name="textfield2" size="10">
                  </td>
                  <td>
                    <div align="right"><img src="main/004go.gif" width="22"
height="22"></div>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="111" valign=top background="main/013.gif">
              <p><img src="main/002darkgreen.gif" width="111"
height="3"><br>
                <font color="#FFFFFF"><b><font face="Verdana, Tahoma, Arial"
size="1">Search
                For :<br>
                <img src="main/000none.gif" width="8" height="8"><br>
                <input type="text" name="textfield3" size="13">
                <br>
                </font><font color="#FFFFFF"><b><font face="Verdana, Tahoma,
Arial" size="1"><img src="main/000none.gif" width="8"
height="8"></font></b></font><br>
                <img src="main/000none.gif" width="28" height="1"><img
src="main/014searchbutton.gif" width="74" height="16"><br>
                <br>
                <a href="index.html" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image15','','main/015home1.gif',1)"><img
src="main/015home.gif" width="111" height="24" border="0"
name="Image15"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','main/016community1.gif',1)"><img
src="main/016community.gif" width="111" height="24" border="0"
name="Image1"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image2','','main/017security1.gif',1)"><img
src="main/017security.gif" width="111" height="24" border="0"
name="Image2"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image3','','main/018events1.gif',1)"><img
src="main/018events.gif" width="111" height="24" border="0"
name="Image3"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image4','','main/019onlinepay1.gif',1)"><img
src="main/019onlinepay.gif" width="111" height="24" border="0"
name="Image4"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image5','','main/20onlinebook1.gif',1)"><img
src="main/20onlinebook.gif" width="111" height="24" border="0"
name="Image5"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image6','','main/21shopping1.gif',1)"><img
src="main/21shopping.gif" width="111" height="24" border="0"
name="Image6"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image7','','main/22food1.gif',1)"><img
src="main/22food.gif" width="111" height="24" border="0"
name="Image7"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image8','','main/23entertain1.gif',1)"><img
src="main/23entertain.gif" width="111" height="24" border="0"
name="Image8"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image9','','main/24gettingaround1.gif',1)"><img
src="main/24gettingaround.gif" width="111" height="24" border="0"
name="Image9"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image10','','main/25thetown1.gif',1)"><img
src="main/25thetown.gif" width="111" height="24" border="0"
name="Image10"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image11','','main/26news1.gif',1)"><img
src="main/26news.gif" width="111" height="24" border="0"
name="Image11"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image12','','main/27technical1.gif',1)"><img
src="main/27technical.gif" width="111" height="24" border="0"
name="Image12"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image13','','main/28infodesk1.gif',1)"><img
src="main/28infodesk.gif" width="111" height="24" border="0"
name="Image13"></a><br>
                <a href="javascript:;" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image14','','main/29faq1.gif',1)"><img
src="main/29faq.gif" width="111" height="24" border="0"
name="Image14"></a></b></font></p>
              <p align="center"><img src="main/30advert.gif" width="102"
height="113"><br>
                <br>
              </p>
            </td>
            <td width="11" valign=top background="main/007.gif"><img
src="main/008.gif" width="11" height="32"></td>
            <td width="627" valign=top bgcolor="#FFFFFF">
              <div align="left">
                <table width="100%" border="0" cellspacing="0"
cellpadding="0">
                  <tr>
                    <td background="main/43.gif"><img src="main/44.gif"
width="167" height="27"></td>
                  </tr>
                </table>
                <br>
                <br>
                <br>
                <br>
                <table width="85%" border="0" cellspacing="0"
cellpadding="0" align="center">
                  <tr>
                    <td>
                      <div align="center">
                        <p><b><font face="Verdana, Arial, Helvetica,
sans-serif" size="1" color="#000000">THANK
                          YOU !</font></b></p>
                        <p align="center"><b><font face="Verdana, Arial,
Helvetica, sans-serif" size="1" color="#000000"><font color="#003300">Your
                          registration is successfull ! To learn how to
install
                          your e-mail, please <font color="#333333"><a
href="faq2.html"><font color="#000000">click
                          here</font></a></font>!</font></font></b></p>
                        </div>
                    </td>
                  </tr>
                </table>
                <div align="center"><br>
                  <br>
                  <table width="85%" border="0" cellspacing="0"
cellpadding="0" align="center">
                    <tr>
                      <td width="50%"><b><font face="Verdana, Arial,
Helvetica, sans-serif" size="1" color="#000000"><a href="invite.html"
target="_blank"><img src="main/02.jpg" width="73" height="61"
border="0"></a><a href="invite.html" target="_blank"><img src="main/38.gif"
width="171" height="61" border="0"></a><br>
                        <br>
                        <b><font face="Arial, Helvetica, sans-serif"
size="1" color="#CCCCCC"><img src="main/000none.gif" width="8"
height="4"></font></b><br>
                        <img src="main/32line.gif" width="254"
height="1"><br>
                        <img src="main/33.gif" width="98" height="89"><img
src="main/34.gif" width="154" height="89" usemap="#Map3" border="0"><br>
                        <img src="main/35.gif" width="99" height="94"><img
src="main/36.gif" width="153" height="94" usemap="#Map4Map" border="0"><br>
                        <br>
                        <map name="Map3">
                          <area shape="rect" coords="74,58,153,73"
href="http://www.emasonline.com/millenniumland/Showhouse/Main.asp"
target="_blank">
                        </map>
                        </font></b><b><font face="Verdana, Arial, Helvetica,
sans-serif" size="1" color="#000000">
                        <map name="Map4Map">
                          <area shape="rect" coords="73,68,152,81"
href="http://www.emasonline.com/millenniumland/demo.asp" target="_blank">
                        </map>
                        </font></b></td>
                      <td width="50%">
                        <div align="center">
                          <p align="center"><img src="main/54suggest.gif"
width="153" height="180" usemap="#Map" border="0">
                            <map name="Map">
                              <area shape="rect" coords="63,137,144,151"
href="mailto:feedback at desamillennia.com" alt="SUGESST ??" title="SUGESST
??">
                            </map>
                            <b><font face="Verdana, Arial, Helvetica,
sans-serif" size="1" color="#000000">
                            <map name="Map4">
                              <area shape="rect" coords="73,68,152,81"
href="http://www.emasonline.com/millenniumland/demo.asp" target="_blank">
                            </map>
                            </font></b></p>
                        </div>
                      </td>
                    </tr>
                  </table>
                  <br>
                </div>
                <div align="center"><br>
                </div>
                <p align="center">&nbsp;</p>
                <p align="center">&nbsp;</p>
              </div>
            </td>
            <td width="12" background="main/005.gif" valign=top><img
src="main/006.gif" width="12" height="30"></td>
          </tr>
        </table>
        <table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="114">
              <div align="right"><img src="main/50.gif" width="4"
height="10"></div>
            </td>
            <td width="647" background="main/48.gif">
              <div align="right"><img src="main/49.gif" width="8"
height="10"></div>
            </td>
          </tr>
        </table>
        <table width="761" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="114">
              <div align="right"></div>
            </td>
            <td width="647">
              <div align="center"><br>
                <font size="1" face="Arial, Helvetica, sans-serif"
color="#CCCCCC">
                Home | Community | Security Access | Events | Online Payment
|
                Online Booking | Shopping | Food &amp; Dining |
Entertainment
                | Getting Around | The Town | News &amp; Archives |
Technical
                Support | Information Desk | FAQ<br>
                <font color="#666666"><br>
                Copyright 2001 &copy; . Desa Millennia Sdn Bhd. Your Smart
Township.
                Site constructed by zecnet.com and
ionetbiz.com.</font></font></div>
            </td>
          </tr>
        </table>

      </td>
    </tr>
  </table>
  <br>
</div>
</body>
</html>








More information about the Mod_python mailing list