- From: Martijn <martijn.martijn@gmail.com>
- Date: Mon, 27 Mar 2006 16:55:17 +0200
- To: paul@activemath.org
- Cc: "Web APIs WG" <public-webapi@w3.org>
I think you mean 'onselect' instead of 'onselected', right. With 'onselected' I get the feeling the selection already happened, so there is no way to cancel it. You want to have an event raised when a clipboard action takes place? I mean you don't want it to happen when something is dragdropped (and copied at the same time)? I think you would also need a oncut. Maybe it should be called onclipboard which happens when anything from the website is cut/copied on the clipboard? But maybe the separate events are needed. Anyway, microsoft already seems to have implemented it in some way: http://msdn.microsoft.com/workshop/author/dhtml/reference/events/oncopy.asp http://msdn.microsoft.com/workshop/author/dhtml/reference/events/oncut.asp http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onselect.asp It seems to me to be more logical to have the oncut and oncopy event handlers on the selection object, than on any element. Regards, Martijn On 3/27/06, Paul Libbrecht <paul@activemath.org> wrote: > > Hello, > > I have written a little note to explain my ideas that could enable a > safe copy-and-paste in scripts running within web-pages. Please find it > here: > > http://www.activemath.org/~paul/tmp/Ideal-Browser-Behaviour.html > > this follows discussions that happened earlier on this forum and I would > love to have comments. I still believe that the proposed handlers are > appropriate and safe. The recent addition is to add a simplistic > "onselected" handler to enable, in some pages, only "well-formed" > selections... this is maybe half-baked but complete the requirements > that I would have for formulae copy-and-paste. > > thanks > > paul > >
Received on Monday, 27 March 2006 14:55:23 UTC