Connecting Tech Pros Worldwide Help | Site Map

Dynamic Image Map Not Updating in Firefox

 
LinkBack Thread Tools Search this Thread
  #1  
Old April 26th, 2007, 01:45 AM
avicalc@gmail.com
Guest
 
Posts: n/a
Default 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
something?


  #2  
Old April 26th, 2007, 02:45 PM
avicalc@gmail.com
Guest
 
Posts: n/a
Default Re: Dynamic Image Map Not Updating in Firefox

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.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.