472,093 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

Dynamic Image Map Not Updating in Firefox

I am using HTML checkboxes and JavaScript to toggle on and off, a
number of absolutely positioned transparent images located on directly
top of each other with different z-indexes. In addition, all of my
images share a single client-side image map which is also dynamically
generated (using XmlHttpRequest) based on the status of each checkbox.
I collect my responses from XmlHttpRequest and inject them into the
innerHTML property of a div to display the image map.

The functionality works perfectly in IE7. However, in Firefox rv 1.8,
the image map is not updated as I toggle checkboxes on and off. I have
verified that the innerHTML property contains the correct image map
but Firefox seems to just use whatever was loaded with the page
originally. Is there a good solution to this issue or am I overlooking

Apr 26 '07 #1
1 5987
This issue was fixed by generating a random name for the image map
each time the images are toggled and then using the DOM to change the
"useMap" attribute to match the random name.
Apr 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Roger Withnell | last post: by
7 posts views Thread by JavaScriptRocks | last post: by
1 post views Thread by Scott Nichols | last post: by
3 posts views Thread by steve.peticca | last post: by
9 posts views Thread by pbd22 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.