YUI: Drag Drop Form Handling
This example shows the solution to
this issue
.
The Code
(function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event; dv = document.createElement("div"); dv.setAttribute("id", "dd-demo-1"); dv.setAttribute("style", "position:relative;"); tb = document.createElement("input"); tb.setAttribute("id", "tb-1"); tb.setAttribute("type", "text"); tb.setAttribute("value", "something here"); dv.appendChild(tb); YAHOO.util.Dom.get('test').appendChild(dv); var dd = new YAHOO.util.DD("dd-demo-1"); //This is the important part dd.addInvalidHandleId('tb-1'); dp.SyntaxHighlighter.HighlightAll('code'); })();