CSSquirrel A look at web development and web design by Kyle Weems

:

Bug or Stupidity?: jQuery, Imagemaps, and Dynamically Inserting Area Tags

Posted by Kyle Weems on November 12, 2008

I’ve run across something that is not making any sense to me.

The situation: I’ve got an empty imagemap that I want to dynamically enter area tags into with jQuery. I’ve been trying to insert them using .append() or even .html() and every time I attempt to do so nothing occurs. I can insert text or other tags, but no actual area tags.

Now, if I go oldschool and use document.getElementById(insertnamehere).innerHTML = “inserttagshere” that works. But every variation I can think of to use jQuery methods to add an area tag fails.

Can anyone think of anything obvious that I’m missing here?

Tags: ,

One Response to “Bug or Stupidity?: jQuery, Imagemaps, and Dynamically Inserting Area Tags”

  1. You know… I had the same issue and you just solved it for me.. I put it down to stupidity!!!

Leave a Reply

Please prove your sentience by clicking on the robot in the list of images This is a picture of a mechanical man. This is a picture of a creature that eats nuts and lives in the trees. This is a picture of what happens to a human head after the flesh is gone.

Your Comment (warning: Inserting too many hyperlinks in your comments may trigger a filter, causing your comment to require approval before posting.)

RSS Feeds

My Photos. I Haz Them.

 

About Me

The Squirrel is Kyle Weems, an interactive designer for Mindfly Web Studio in rainy Bellingham, WA. More

© 2008 by Kyle Weems. All Rights Reserved. Login