One additional question.
I am also going to need to drag from the embed to the main page. I can use code within the embed to call a hook to initiate a drag, but to do so I need to know how to artificially initiate a drag (without a linked element...I want to call a function programmatically and attach my own proxy to be dragged within that function).
The embed knows where and when a drag is valid (and what data that drag represents), the page cannot know this.
1. I control the code in the embed. It is a customized svg doc.
2. the object model is completely different.
4. Ext can control the drag complely once I start it. I will provide the Proxy for it to drag that will live in the context of the main page.
Thus, the key to all of this is that I need to be able to programmatically enter the 'dragging' state. I need to skip the drag detection state and do this without a real drag source (or with a 'pretend' source).
I've been considering having the embed call the page to place a small 'mask' under the mouse when I'm over one of the embeds valid drag targets. The mask would have to forward it's mouse calls to the underlying embed, so that it could be removed when I am no longer over a valid drag item.
That's my backup anyways if I can't figure out a way to artifically enter the 'dragging' state through a function call from the embed into the main page.
any thoughts, recomendations?
or am I up the wrong tree again :P
Last edited by harmomelodic; 30 Sep 2010 at 11:41 AM.
There is a bit of a chicken and egg problem here.
I can add a dragzone, but how is it going to get the mouse interactions over the embed in the context of the whole page? Thats why we has to use the mask after all...
I think I am back to two choices...
1. figure out how to artifically initiate a drag for the dragzone from inside the context of the embed.
2. leave the mask over the embed all the time. Forward mouse events into the embed as appropriate, adjusting for the x-y position of the events either withing the embeds code or by modifying the event.
Approach #2 seems to mostly work, except the behavior when I am not returning data (getDragData returning undefined) isn't quite right. Instead of not entering the drag state at all, it enters a state where the Ext drag code starts capturing the mouse events. I need a failed drag to be completely failed so that it does other behavior in the embed when it is not on a valid drag spot.
I'm currently trying to figure out the best/simplest way to correct this behavior...thoughts are appreciated.
This is driving me crazy.
stopPropagation = false doesn't even work.
I've been spending enless amounts of time in firebug setting breakpoints, trying to figure out where this behavior is happening. Everything in DragZone, DragDropMgr, DragSource seems to say that a drag isn't happening. However, When I drag an invalid target within the dragzone the cursor changes to the do-not-enter symbol and events stop being propagated into the masking div (and thus the embed). When I unclick the embed sees events again. So, the embed gets the initial mousedown, then gets mousemoves after the mouseup.
The embed has dragging type behavior, and I want that to happen only on invalid drag targets.
If anybody has any idea where these events are getting blocked, or how to trace it out (where is that cursor being set?) please help...
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."