Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
WebView doesn't apply any mouse-moved event based effects, neither CSS nor JS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebView doesn't apply any mouse-moved event based effects, neither CSS nor JS




In my XML View Plugin for Safari/WebKit (http://www.entropy.ch/software/macosx/xmlviewplugin/ ) I embedded a WebView, which I use to show syntax colored XML. Maybe it’s weird to display a WebView in a WebKit plugin that is itself shown in a WebView, and maybe that’s what causes my problem.


The problem is that no mouse-moved event based effects are applied. That means that CSS :hover rules are never executed, and no JavaScript onmouseover events are ever fired.

To check that the HTML that I build and give to the WebView should work, I wrote it to a temp file and opened that HTML file directly. All the effects worked flawlessly, so I'm sure that the CSS and JS code is not the problem.

All the *static* stuff works though: CSS styling is applied correctly, and JavaScript onclick handlers execute as expected. Interestingly, the onmouseovers also execute as soon as I click in the corresponding element. It's really just the mouse-moved stuff that does not work, it looks like the webview never gets any mouseMoved: events.


1.) Do I have to do something special to get this to work?

2.) Is it somehow not allowed to use a WebView in a WebPlugIn view the way I do it here?






_________________________________________________________________ Marc Liyanage http://www.entropy.ch


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.