Interpretation of relative URL's in external USEMAPs?

Markku Savela (msa@anise.tte.vtt.fi)
Tue, 30 Sep 1997 11:17:00 +0300 (EET DST)


Date: Tue, 30 Sep 1997 11:17:00 +0300 (EET DST)
From: Markku Savela <msa@anise.tte.vtt.fi>
Message-Id: <199709300817.LAA00921@anise.tte.vtt.fi>
To: www-html@w3.org
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
	http://anothersite/path2/target.html
and or
	http://thissite/path1/target.html
?

I can think situations for both interpretations to have useful
applications.

-------------------------------------------------------
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
	  script,

	- 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"
		     usemap="/cgi-bin/map?parameters+A#map">

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 (msa@hemuli.tte.vtt.fi), Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,http://www.vtt.fi/tte/staff/msa/