aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Drag and drop over an iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Drag and drop over an iframe" Watch "Drag and drop over an iframe" New topic
Author

Drag and drop over an iframe

Brian Quinn
Ranch Hand

Joined: Dec 23, 2003
Posts: 32
I have two pop-up like panels that I show to a user when the click certain buttons. I have implemented js drag and drop so that they can move these panels as neccessary and they work fine if only one is open. However one of the panels contains and iFrame and when I drag the other panel over it, I lose the mouse events, so the drag stops till I get across the iframe and the dragged panel jumps to where the mouse is. Is there a way to not lose the mouse events ?
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
since the iframe is a seperate page it wont recognize this pages events.
for that i think you will have to call events in that iframe such as on mouse entered and on mouse out on the body of the iframe.
but still this would involve some bit of manipulation in passing the values from you page to the iframe and back.
try it out.


Life called,so here I am.<br />Cheers<br />Niki.:-)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Drag and drop over an iframe
 
Similar Threads
gwt drag and drop problem
Sliding Panels
Dragging and Dropping swing JPanels
making own InputStreamReader()
Need to scroll JScrollPane on mousedrag - Urgent