[TYPO3-templavoila] How to trigger a JS function when dragging an content element over a tab

Benjamin Mack benni at typo3.org
Fri Jan 8 11:02:25 CET 2010


Hey Ron,

well, basically, as soon as you start dragging you could set a global 
variable somwhere like "TYPO3.TV.Dragging.isActive = true" and then 
check if this option is set when hovering over the content. But 
apparantly your problem lies somewhere else.

I don't know so much about scriptaculuos and D&D there and it seems to 
be a limitation in their D&D framework, however there should be an 
option to define a "onDrag" that constantly fire an event. With that you 
check if your cursor currently is within the boundaries of the 
tvFeatureContentTab position.

Hope this helps a bit!
benni.


More information about the TYPO3-project-templavoila mailing list