Re: Dropping <input usemap="">

Robert Burns wrote:
> The difference between <input usemap> and <img usemap> is the same as 
> the difference between <input type='image'> and <img>. [...]
> What would YOU say are the differences between THESE: 
> <input type="image"> and <img>?

When you click on an <img>, nothing happens - it's just a 
non-interactive image. When you click on an <input type=image>, the 
input's form is submitted with the mouse coordinates added as 'x' and 
'y' - it's an image and a server-side image map and a form-submission 
button.

<input type=image> is closer to <a href><img ismap></a> - in that case, 
both are server-side image maps, and the difference is that <img ismap> 
does a GET request with just the x and y arguments, while <input 
type=image> does a form submission with all the form's other input 
values in addition to the new x and y.

So the differences with <img ismap> are "one can only do GET" and "one 
submits all the form's other input values too", and I can't see any way 
for those differences to apply to client-side image maps (i.e. usemap) 
since client-side image maps are never associated with forms.

-- 
Philip Taylor
philip@zaynar.demon.co.uk

Received on Thursday, 16 August 2007 15:10:13 UTC