DHTML Forum  

Go Back   DHTML Forum > dhtmlcentral.com > Crossbrowser DHTML
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02.08.2007, 20:45
aalleexx aalleexx is offline
Neuer Benutzer
 
Join Date: 02.08.2007
Posts: 2
Default

IE and imagemap loaded through ajax request


I have a web application ( does graphics and statistics ), and am having some trouble getting part of it to work.

The graphs are loaded via an ajax requests that sets the innerHTML of a div to something like below:
<div width="600" height="300" id="graph-1-1-9">

<map name="9">
<area onmouseout="hideddrivetip()" onmouseover="ddrivetip('<p align=left>Time: 2007-08-01 02:25:00 PM<br>Value: 1064</p>', 'yellow', 300)" href="/module/cdn/stats/graphimage/9/600x300/gif/current/graph.gif" coords="47, 229, 2" shape="circ"/>

</map>
<img usemap="9" src="/module/cdn/stats/graphimage/9/600x300/gif/current/graph.gif"/>
</div>


So, my issue is that in Mozilla, the imagemap works great, but in IE it is just a regular boring image. The ddrivetip and hideddrivetip functions are loaded at the top of the <body>, and are just functions to display tooltips overtop of certain parts of the graph image.

Am I doing somethign dumb, or is IE?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03.08.2007, 18:52
aalleexx aalleexx is offline
Neuer Benutzer
 
Join Date: 02.08.2007
Posts: 2
Default

answer


For anyone googling this later, in ie you cant say usemap='9'. You have to say usemap='#9'. Silly thing....

Quote:
Originally Posted by aalleexx View Post
I have a web application ( does graphics and statistics ), and am having some trouble getting part of it to work.

The graphs are loaded via an ajax requests that sets the innerHTML of a div to something like below:
<div width="600" height="300" id="graph-1-1-9">

<map name="9">
<area onmouseout="hideddrivetip()" onmouseover="ddrivetip('<p align=left>Time: 2007-08-01 02:25:00 PM<br>Value: 1064</p>', 'yellow', 300)" href="/module/cdn/stats/graphimage/9/600x300/gif/current/graph.gif" coords="47, 229, 2" shape="circ"/>

</map>
<img usemap="9" src="/module/cdn/stats/graphimage/9/600x300/gif/current/graph.gif"/>
</div>


So, my issue is that in Mozilla, the imagemap works great, but in IE it is just a regular boring image. The ddrivetip and hideddrivetip functions are loaded at the top of the <body>, and are just functions to display tooltips overtop of certain parts of the graph image.

Am I doing somethign dumb, or is IE?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT +2. The time now is 13:43.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.