[Zope] <img src="... problem with Firefox

Andreas Pakulat apaku at gmx.de
Tue Oct 25 11:06:46 EDT 2005


On 25.10.05 17:03:09, Thomas G. Apostolou wrote:
> i have a problem with Firefox.

No you don't, you actually misunderstand something about URL's..

> <a href="file///<dtml-var expr="str(_['sequence-item'])">">

That is not a correct URL, it's only a part of it. What you really want
is:

file://<dtml-var ...>

> <img src="file///<dtml-var expr="str(_['sequence-item'])">" alt="Alt
> Text" width="150" height="150" >

Same thing here. A URL consists of a protocol, an address, a port and a
path. file is the protocoll, after it there have to be ://, then you
have the server address and the port (if not 80) and at last a path.

With file:// there normally is no server, but only a path eventually
using a drive letter on windows.

> "http://localhost:81/Members/demo/Panorama/PriceList/Test_A_Voisys/file///%5C%5CVoisys2000%5CCustomerFiles%5CCustomerFiles%5CTest_A_VoiSys%5COlympics%5CTeletiEnarxis_d.jpg"

Do not use file:// URL's other than for testing purposes. If you put
this site online nobody will see the Images or have working links,
because they don't have the files on their system.

Other than that, this is the normal behaviour for relative URL's (and
file///... is a relative URL), the browser prepends the current URL to
it. The error is acutally on IE's side, but that is of no real concern
here.
 
> I have tried chenging the settings of firefox about image loading but it
> does not seem to work...

You only have to be sure to provide a correct absolute URL, no need to
change anything in firefox.

Andreas

-- 
Don't relax!  It's only your tension that's holding you together.


More information about the Zope mailing list