Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse up event not caught outside an iframe

Status
Not open for further replies.

tnec

Programmer
Sep 27, 2010
1
FR
Hi,

I am writing a Javascript program that will run inside an iframe (it is a facebook application). In this program I want to implement a drag and drop feature by adding listeners on down and up mouse events.

Problem: When I drag from my page to outside the iframe (or outside the browser window), the up event is not sent to my document and the program behaves as if the mouse button was still in "down" position. Do you have an idea to solve this problem?

Thank you
 
You'd have to write a proxy that passes mouse events between the iframe and its parent. I did this a while back for a GUI windowing system, and it was tricky but "do-able".

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top