By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,599 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,599 IT Pros & Developers. It's quick & easy.

Safari related ? event handlers not being called

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a


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.