Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting applet's position in the screen  RSS feed

 
Alejandro M Soini
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to get an applet's X,Y coordinates relative to the monitor pixels if this applet is running within a webpage? I can get X,Y coordinates from different components, but the applet itself is in a browser so I have to deal with the browser's toolbar plus any html modifications in the containing webpage. I'm trying to get this so that I can then simulate drag and drop with dynamically accessed coordinates. Any ideas? Thank you. -alex
 
Alejandro M Soini
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...or...is there a way for an applet within a webpage to query its coordinates within the page? i'm pretty stumped
 
Alejandro M Soini
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ehhhh, sorry. found it, feel like a schmoe. getLocationOnScreen().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!