Interpretation of relative URL's in external USEMAPs?

Markku Savela (
Tue, 30 Sep 1997 11:17:00 +0300 (EET DST)

Date: Tue, 30 Sep 1997 11:17:00 +0300 (EET DST)
From: Markku Savela <>
Message-Id: <>
Subject: Interpretation of relative URL's in external USEMAPs?

I suppose there is nothing unclear here, but I would like to verify
which interpretation is the right one:

in document "http://thissite/path1/doc.html" I have
	<img .... usemap="http://anothersite/path2/map.html#map" ...>
and map.html has
	<area ... href="target.html" ..>
then this area refers to
and or

I can think situations for both interpretations to have useful

The real application I have in mind is

	- I generate a map image dynamically with a /cgi-bin/map script,

	- I want this image to have active spots, and the only thing
	  that knows where they actually are, is the map generating

	- thus, my idea is to call the script twice: once to generate
	  the image (image/gif), and another time with same parameters
	  + a request that returns an area map (text/html).

	- the use
		<img src="/cgi-bin/map?parameters"

Of course, netscape 3.x doesn't work with external usemap, IE 3.0
seems to think the relative reference is for first document, not the
map... (of course, if it interpreted relative to map, it would need to
call the "/cgi-bin/target.html"...).

Markku Savela (, Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,