Dynamic image maps broken uder IE8-Beta? (with sample page)
Dynamic image maps broken uder IE8-Beta? (with sample page)
am 07.04.2008 20:00:23 von Jeremy J Starcher
Are dynamic image maps broken under IE8-Beta or am I missing something
obvious?
Tested and found working under IE6, IE7, Fx 2, Fx 3 (Beta)
Is this something I should worry about, or should I delay my panic until
IE8 final comes out?
(Posted in c.l.js five days ago with no answer. Seeing if a different
audience has experience.)
Re: Dynamic image maps broken uder IE8-Beta? (with sample page)
am 07.04.2008 22:10:17 von dorayme
In article ,
Jeremy J Starcher wrote:
> Are dynamic image maps broken under IE8-Beta or am I missing something
> obvious?
>
>
What is the difference between a dynamic image map and one that is not
dynamic?
--
dorayme
Re: Dynamic image maps broken uder IE8-Beta? (with sample page)
am 07.04.2008 22:33:36 von Jeremy J Starcher
On Tue, 08 Apr 2008 06:10:17 +1000, dorayme wrote:
> In article ,
> Jeremy J Starcher wrote:
>
>> Are dynamic image maps broken under IE8-Beta or am I missing something
>> obvious?
>>
>>
>
> What is the difference between a dynamic image map and one that is not
> dynamic?
In this context, I was using "dynamic" in the sense of "dynamic HTML."
Under IE8, if I have an AREA defined in my HTML then I can attach an
onclick handler, and it will work.
If I create an AREA tag and append it to my MAP structure, then the
attached onclick handler will do nothing.
On every other browser that I have tested (including IE5.5, 6 and 7, Fx2,
Opera 9, Safari and Konq) both methods have a functional onclick handler.
Re: Dynamic image maps broken uder IE8-Beta? (with sample page)
am 07.04.2008 23:48:17 von Nik Coughlin
"Jeremy J Starcher" wrote in message
news:XitKj.490$%41.489@nlpi064.nbdc.sbc.com...
> Are dynamic image maps broken under IE8-Beta or am I missing something
> obvious?
>
>
>
> Tested and found working under IE6, IE7, Fx 2, Fx 3 (Beta)
>
> Is this something I should worry about, or should I delay my panic until
> IE8 final comes out?
>
> (Posted in c.l.js five days ago with no answer. Seeing if a different
> audience has experience.)
JavaScript is heavily broken in IE8. Try visiting Google Maps or even some
of Microsoft's own sites like Live Maps. It will be fixed before the
release, it would be suicide for them not to.
Re: Dynamic image maps broken uder IE8-Beta? (with sample page)
am 08.04.2008 18:57:28 von Jeremy J Starcher
On Tue, 08 Apr 2008 09:48:17 +1200, Nik Coughlin wrote:
> JavaScript is heavily broken in IE8. Try visiting Google Maps or even
> some of Microsoft's own sites like Live Maps. It will be fixed before
> the release, it would be suicide for them not to.
Thanks for the heads up.
I've only used IE8 in a [slow] virtual machine here, so its been too
painful to test on any other site than my own.
I'll put it on the back burner and tell the folks who are using IE8 that
its a) broken and b) their fault for using a beta with no other plan.
They can drop back to the IE7 engine if they need.
Re: Dynamic image maps broken uder IE8-Beta? (with sample page)
am 09.04.2008 22:52:11 von GTalbot
On 7 avr, 16:33, Jeremy J Starcher wrote:
> On Tue, 08 Apr 2008 06:10:17 +1000, dorayme wrote:
> > In article ,
> > Jeremy J Starcher wrote:
> Under IE8, if I have an AREA defined in my HTML then I can attach an
> onclick handler, and it will work.
>
> If I create an AREA tag and append it to my MAP structure, then the
> attached onclick handler will do nothing.
>
> On every other browser that I have tested (including IE5.5, 6 and 7, Fx2,
> Opera 9, Safari and Konq) both methods have a functional onclick handler.
This will work in IE 8 beta 1 with DOM 2 HTML methods instead of using
setAttribute. I have made a few changes from your testpage though:
(...)
height=3D"300" alt=3D"Image download support must be enabled for this
test" usemap=3D"#mymap">
Changes I made:
- I inserted the map inside the , not creating another
.
- I also renamed several objects: function names, image filenames,
etc.
- I removed setAttribute everywhere and used instead DOM 2 HTML
methods:
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26019118
- style=3D"cursor: pointer;" removed
- event replaced by evt; it could be removed entirely
- ismap removed
A few more aspects of the testpage could still be improved: like
testing support for createElement and getElementById before calling
them.
Regards, G=E9rard
--
Internet Explorer 8 bugs
http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/
Re: Dynamic image maps broken uder IE8-Beta? (with sample page)
am 10.04.2008 01:04:45 von Jeremy J Starcher
On Wed, 09 Apr 2008 13:52:11 -0700, GTalbot wrote:
> On 7 avr, 16:33, Jeremy J Starcher wrote:
> This will work in IE 8 beta 1 with DOM 2 HTML methods instead of using
> setAttribute. I have made a few changes from your testpage though:
[ Sample snipped ]
> Changes I made:
> - I inserted the map inside the , not creating another
. - I also
> renamed several objects: function names, image filenames, etc.
*nods* I was just trying to keep it simple there.
> - I removed setAttribute everywhere and used instead DOM 2 HTML methods:
> http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26019118
That is the magic. I have no idea why that didn't cross my mind. So I
guess I was doing something stupid.
> - style="cursor: pointer;" removed
> - event replaced by evt; it could be removed entirely - ismap removed
I'll do a bit of reading, try to figure out why you would have removed
'ismap'.
> A few more aspects of the testpage could still be improved: like testing
> support for createElement and getElementById before calling them.
Of course, of course!
Those tests should be in my production code. I'll double check I rolled
those changes out.
> Regards, Gérard
A dozen thanks.
I'm wearing a dozen hats here at work, but I've got your message saved
for the next time I wear my webdev one.