Well, you create a map with ID thisMap2, then you select something with id thisMap. Also, it may be redundant to change the usemap attribute at the beginning of the function, but if you are going to do that, you may want to use $('#s7Image').removeAttr('usemap').
--Erik On 6/8/07, Jimmy Glass <[EMAIL PROTECTED]> wrote:
I have been trying to append a freaking Area tag to a MAP tag for about 2 hours now... The data argument is always a string. function(data) { $('#s7Image').attr('usemap',''); $('#MapContainer').empty(); thisMap = '<MAP ID="thisMap2" NAME="thisMap2"></MAP>'; $('#MapContainer').append(thisMap); $('#thisMap').append(data); $('#s7Image').attr('usemap','thisMap2'); } Is there something obvious that I'm missing here? Any thoughts would be greatly appreciated. Jimmy G