[Zope] <img src="... problem with Firefox
Thomas G. Apostolou
thomas.info at hol.gr
Tue Oct 25 10:03:09 EDT 2005
Hi all,
i have a problem with Firefox.
As you can see bellow i am retrieving some data from sql server with
the use of external method "GetPrList" and then show taht data.
The data of "_['sequence-index']==2" is the full name of an image file
to the file system.
So i use:
<a href="file///<dtml-var expr="str(_['sequence-item'])">">
<img src="file///<dtml-var expr="str(_['sequence-item'])">" alt="Alt
Text" width="150" height="150" >
</a> to show that image.
I works fine with IE 6 (both the image shows and the link works), but
when i try it with firefox it does not show the image neither the link
works. The only thing i can see is the "Alt Text" marked as hyperlink,
that shows like
"http://localhost:81/Members/demo/Panorama/PriceList/Test_A_Voisys/file///%5C%5CVoisys2000%5CCustomerFiles%5CCustomerFiles%5CTest_A_VoiSys%5COlympics%5CTeletiEnarxis_d.jpg"
witch tells me that it adds
"http://localhost:81/Members/demo/Panorama/PriceList/Test_A_Voisys/" to
what i tell it to be.
I quess this is the same reason why the image does not show.
How can i tell that what i ask as src="... and href="... is not relative
but absolut?
Do i do something else wrong so that the image does not in Forefox
only?
I have tried chenging the settings of firefox about image loading but it
does not seem to work...
Thank you in advance...
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<script type="text/javascript"
src="/plone_javascript_variables.js"></script>
<script type="text/javascript" src="/plone_javascripts.js"></script>
<!-- Column style sheet. -->
<style type="text/css" media="screen"><!-- @import
url(/ploneColumns.css); --></style>
<!-- Main style sheets for CSS2 capable browsers -->
<style type="text/css" media="screen"><!-- @import url(/plone.css);
--></style>
<!-- Custom style sheet if available -->
<style type="text/css" media="all"><!-- @import
url(/ploneCustom.css); --></style>
<!-- Disable IE6 image toolbar -->
<meta http-equiv="imagetoolbar" content="yes" />
</head>
<body>
<table id="sortable" class="listing" summary="Content listing"
cellpadding="0" cellspacing="0">
<thead>
<tr>
<th><b> ΚΩΔΙΚΟΣ </b></th>
<th><b> ΟΝΟΜΑΣΙΑ </b></th>
<th><b> ΕΙΚΟΝΑ </b></th>
</tr>
</thead>
<tbody>
<dtml-in
expr="GetPrList(sysDSN=dsnName,usr=usrID,mypass=passWD)">
<dtml-if sequence-even>
<tr class="even">
<dtml-else>
<tr class="odd">
</dtml-if>
<dtml-in sequence-item>
<dtml-if expr="_['sequence-index']==2">
<td>
<a href="file///<dtml-var
expr="str(_['sequence-item'])">">
<img src="file///<dtml-var
expr="str(_['sequence-item'])">" alt="Alt Text" width="150"
height="150" >
</a>
</td>
<dtml-else>
<td>
<dtml-var expr="str(_['sequence-item'] or
'').decode('iso-8859-7').encode('utf-8')">
</td>
</dtml-if>
</dtml-in>
</tr>
</dtml-in>
</tbody>
</table>
<body>
<html>
-->
much respeact,
Thomas G. Apostolou
More information about the Zope
mailing list