Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Applet - Drag and Drop

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a html page which has an embedded applet and few other html components. I came across the following scenario.

1. Drag the mouse from inside the applet to the embedding html
2. Release the mouse on the html page
3. I have handled the mouseup event on the html body element. But when i released the mouse on the html page to end the drag that i started from the applet, the mouseup event is not fired.
4. Even after i dragged the mouse outside the applet mousedragged event is fired on the applet and when i release the mouse outside the applet the mousereleased event is fired on the applet.

I don't understand why is this happening, why is the html not notified of the mouseup event when i start a drag from the applet and drop it on the html page. Instead the events are fired on the applet.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never tried this, but I very much doubt that mouse operations started in one of the environments (JavaScript and applet) are visible by the other.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic