[Javascript] Focus trick

Troy III Ajnej trojani2000 at hotmail.com
Sun Jul 25 15:14:56 CDT 2004


Try vrapping the object inside a div element and set the onContext eevent of 
that div to false, -not sure but it might solve the problem.

>From: <dev at qroute.net>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "[JavaScript List]" <javascript at LaTech.edu>
>Subject: [Javascript] Focus trick
>Date: Thu, 22 Jul 2004 17:37:26 -0700
>
>I got a real player as an embedded object in a web page. And real player
>does not allow me to disable the right click on its object. And right click
>pops the REAL PLAYER menu which allows one to stream the content outside my
>web page and that yields itself whole bunch of problems.
>
>The method ( SetEnableContextMenu ) of the Real Player Object ( which is
>used to counter effect the menu ) is buggy and it does not do what the docs
>say. It was so in version 8 and it still is in 9.
>
>So I am trying to find a creative way. I check the onmousemove event, but
>what can I do to suppress that menu ?
>One idea is to set the focus or to emulate the click event at a particular
>point on the browser and constantly doing it thru a timer amnd when the
>mouse coordinates fall into that of the division where the real object is
>running, I apply the focus trick which would hopefully cancel the pop up
>menu.
>
>But where would you set the focus ?
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus




More information about the Javascript mailing list