Categories | Question details Back To List | ||
dhtmlxLayout and dhtmlxWindows - how to confirm d-n-d? Whats the best way of allowing confirmation of d-n-d? Elsewhere I've used a popUp window with html content ie button with onclick calls to functions. But I cannot use this in my drag handler tondrag() as it requires a return false/true i.e. my my drag handler popUp window with html can call cancel or ok functions but not return true/false. Answer posted by Alex (support) on Nov 09, 2009 08:56 What drag-n-drop do you mean (what component is dragged) ? Answer posted by Stephen on Nov 09, 2009 10:50 Sorry cut'n'paste is not always a friend I missed off dhtmlxTree. I have a drag and drop handlers and want to allow confirmation of moving a tree node. I first thought I could have a popup window in the drag handler but the handler requires a return of true/false whereas with the popup windows I have used I have html in the window and onclick events to call functions ie no return value. Answer posted by Alex (support) on Nov 10, 2009 01:35 Hello, you can try to use confirm window to organize such a dialog. For example: tree.attachEvent("onDrag",function(sid,tid){ }) Answer posted by Stephen on Nov 10, 2009 02:50 No I dont want an ugly popup I want to use dhtmlxWindows Answer posted by Alex (support) on Nov 10, 2009 03:33 The solution for using dhtmlxWindow: <div id="content"> |