Re: Adding mouse click handler to the plugin
Kevin DeKorte <[email protected]>
| Newsgroups | gmane.comp.mozilla.mplayerplug-in |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Asaf O wrote:
> ok got the real object throigh :
> wrapper.wrappedJSObject
> now I can call functions like stop,,play
> but still,
> click doesnt raise any events, :
> 1. element.onclick
> 2. element.addEventListener
>
> when clicking in the video window
>
> 10x
>
Grab CVS and now you should be able to do this. (Case is important)
element.onClick("MethodToCallOnClick();");
Wasn't super hard to implement, about 20 lines of code. Also made the
change to gecko-mediaplayer.
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Remi - http://enigmail.mozdev.org
iD8DBQFGt3dq6w2kMH0L1dERAo8zAJ9GDbYqjhnbJke0CKf9mosVdo3OPQCggajm
pTdn0RGTiew9oALpKDA+mh8=
=PFHL
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/