Loading ...
Sorry, an error occurred while loading the content.

Re: form input elements disabled when dynamically added to draggable parent elem

Expand Messages
  • charlesseelig
    It works. Fantastic. Thank you, Dav! ... valid drag handle.. ... tag) of the element that has been chosen to be draggable.. ... dynamically added to draggable
    Message 1 of 3 , Oct 30, 2007
    • 0 Attachment
      It works. Fantastic. Thank you, Dav!

      --- In ydn-javascript@yahoogroups.com, dav.glass@... wrote:
      >
      > charlesseelig --
      >
      > This example should help out..
      > http://blog.davglass.com/files/yui/dd14/
      >
      > Basically you need to tell DragDrop that the id "tb-1" is not a
      valid drag handle..
      >
      > By default DragDrop will attach itself to any child (except an A
      tag) of the element that has been chosen to be draggable..
      >
      > Hope that helps :)
      > Dav
      >
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      > ----- Original Message ----
      > From: charlesseelig <cseelig@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Friday, October 26, 2007 12:05:49 PM
      > Subject: [ydn-javascript] form input elements disabled when
      dynamically added to draggable parent element?
      >
      >
      > Symptoms: content in div looks ok, and is draggable as desired - but I
      > can't type in the text input box.
      >
      > Snippet showing text-box add to draggable div -
      >
      > 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(dv);
      >
      > var dd = new YAHOO.util.DD("dd-demo-1");
      >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.