469,271 Members | 1,017 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Safari related ? event handlers not being called

Hi,

I have a site which I tested today for Safari compatibility and found the event handlers assigned in-line in a DIV declaration were
not being called. Example :

<DIV unselectable="on" ID="subCat1"
style="text-align:center; color:#ID4921; font-family:Arial Bold; font-size:14; position:absolute; left:254; top:337; width:122;
visibility:visible;"
onmouseenter="gotMouse()" onmouseleave="gotMouseOut()" onclick="gotSelected()">
Sapphire
</DIV>

No error is thrown but the 'gotMouse, 'gotMouseOut, and 'gotSelected functions are not being called. Works fine in IE 5/6.

Appreciate any ideas.

thanks, Bill Woodruff
dotScience
Chiang Mai, Thailand
Jul 20 '05 #1
1 1461


Martha Vineyard wrote:
I have a site which I tested today for Safari compatibility and found the event handlers assigned in-line in a DIV declaration were
not being called. Example :

<DIV unselectable="on" ID="subCat1"
style="text-align:center; color:#ID4921; font-family:Arial Bold; font-size:14; position:absolute; left:254; top:337; width:122;
visibility:visible;"
onmouseenter="gotMouse()" onmouseleave="gotMouseOut()" onclick="gotSelected()">
Sapphire
</DIV>

No error is thrown but the 'gotMouse, 'gotMouseOut, and 'gotSelected functions are not being called. Works fine in IE 5/6.


onmouseenter/leave are IE5.5/6 on Win only, I wouldn't advise to use
them unless you have an intranet with IE5.5/6/Win clients only.
HTML 4 defines
onmouseout
onmouseover
and Safari is more likely to implement those.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by tony kulik | last post: by
18 posts views Thread by bhavin | last post: by
13 posts views Thread by Charles Law | last post: by
7 posts views Thread by Tom | last post: by
3 posts views Thread by MikeK | last post: by
4 posts views Thread by eggie5 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.