Re: Adding mouse click handler to the plugin

"Asaf O" <[email protected]>
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
yes it does work

but since I dont get the sender of the event
I have to maintain list of plugins - not the best method.

you can get access to the javascript object by :
wrapper.wrappedJSObject
if your code is trusted - for example  :
run from chrome:// URL



2007/8/12, Kevin DeKorte <[email protected]>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Asaf O wrote:
> > well the event you added helped me, but
> > if I connect several onClick events to the same handler
> > I want to be able to respond like :
> >
> > function onClick(sender)
> > {
> > sender.fullscreen = !sender.fullscreen
> > {
> >
> > or so
> >
> > 10x
> >
> > Asaf
> > 2007/8/7, Kevin DeKorte <[email protected] <mailto:[email protected]
> >>:
> >
>
> So does this not work?
>
> embed.onClick = "onClick(embed);";
>
> I'm just not sure how I would handle that object in the plugin since I
> don't have access to the javascript object.
>
> If that doesn't work I think you'll need to have a custom callback
>
> embed.onClick = "onMplayerClick();";
>
> 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
>
> iD8DBQFGvzs06w2kMH0L1dERAofdAJ9ZVrx+3s+Qo8wHCBLtfvW3K/tT+QCfcycK
> zkMDspU8BF54uBnndk3nvnc=
> =piFK
> -----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/
> _______________________________________________
> Mplayerplug-in-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel
>

-------------------------------------------------------------------------
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/

_______________________________________________
Mplayerplug-in-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.