I once had to integrate the two so that a Qooxdoo widget could be dragged
and dropped into an iframe (actually, into a TinyMCE editor instance).  My
first attempt was to get the dragged widget's image and enabled HTML
dragging on it ­ this worked, but was a pain because of having to double up
event handlers and the Qx event handling stack would sometimes interfere in
the events ­ basically, I got it work but it was fiddly and kept bringing
problems as the code grew.

My second attempt was to put a transparent div over the iframe and handle
the drop myself ­ I worked out some code to map mouse positions into text
offsets within the iframe (not possible cross browser, I had to ditch
support for MSIE) and was able to leave HTML5 D&D behind.  This is far from
ideal because I'd have to write a Qx wrapper for every non-Qx target (and in
the case of iframes and RTEs that's not always possible), but fortunately I
only had one wrapper to create.

I don't choose to do that because I felt the HTML5 design was poor, it was
because Qx D&D is engrained deep enough into the eco system that it would be
impossible to add HTML5 compatibility without significantly patching the
core code and that would be too risky without a sponsor from the core team
to get commits put in.  HTML5 D&D is different to the Qx design and there
isn't likely to be a one-to-one mapping; fundamentally, it could be
difficult (if not impossible) to maintain backward compatibility.

AFAICR from my first attempt, HTML5 D&D could be implemented along side Qx
D&D but you'll need to patch qx.event.handler.DragDrop and possibly a few
other classes as well.

John

From:  Nick Glencross <[email protected]>
Reply-To:  qooxdoo Development <[email protected]>
Date:  Saturday, 6 October 2012 16:06
To:  qooxdoo Development <[email protected]>
Subject:  [qooxdoo-devel] HTML5 Drag & Drop

Hi all,

I know the qooxdoo web site says that HTML5 Drag and Drop isn't very well
designed, and there are currently no plans to support it.

However, being able to drag files into and out of a Qooxdoo app is obviously
nice functionality. Has anyone had a play with this and managed to get this
functionality to work out of interest?

Thanks in advance,

Nick Glencross

----------------------------------------------------------------------------
-- Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly what is
happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at
no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev________________________________________
_______ qooxdoo-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to