Re: Prevent Selection of Image

2010-06-07 Thread rudolf michael
or you can simply stop creating new Image() and use element.getStyle().setBackgroundImage() instead. much cleaner this way. On Mon, Jun 7, 2010 at 7:10 PM, Erik M. wrote: > Thanks foir your ideas, I'll give them a try tonight! > > On Jun 4, 8:33 pm, fmod wrote: > > Hi > > > > Use > > theselect

Re: Prevent Selection of Image

2010-06-07 Thread Erik M.
Thanks foir your ideas, I'll give them a try tonight! On Jun 4, 8:33 pm, fmod wrote: > Hi > > Use > theselectionwith the mouse?Selectionof an image means its getting > > a blue background and being draggable to other windows. > > Can you think of an HTML or GWT solution? > > > I read that one op

Re: Prevent Selection of Image

2010-06-06 Thread mP
Some browsers support a css property that literally prevents the applied elements from being selected. If i recall one must add javascript for a particular selection event and cancel for IE and opera but Safari and FF are easy with a css property being enough. -- You received this message because

Re: Prevent Selection of Image

2010-06-04 Thread fmod
Hi Use the selection with the mouse? Selection of an image means its getting > a blue background and being draggable to other windows. > Can you think of an HTML or GWT solution? > > I read that one option was to add an mouseMove event handler and let > it "return false;". This was a pure JavaScr

Prevent Selection of Image

2010-06-04 Thread Erik M.
Hi, I've got several Image Widgets on my Site. Is there a way to prevent the selection with the mouse? Selection of an image means its getting a blue background and being draggable to other windows. Can you think of an HTML or GWT solution? I read that one option was to add an mouseMove event han