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

Re: [ydn-javascript] Drag Drop a copy of an image

Expand Messages
  • Nige White
    ... You re going to have to extend DDProxy, and override the createFrame and showFrame methods to create and display a div with a copy of the img inside it.
    Message 1 of 3 , Apr 13, 2006
    • 0 Attachment
      babak.asadi wrote:

      > I have an image inside a div, and have the div as the drag object
      > (Yahoo.util.DD).
      >
      > What I want to do is to keep the original image in place and allow the
      > user to drag and drop as many copies as they want.
      >
      > What's the best way to approach this?


      You're going to have to extend DDProxy, and override the createFrame and
      showFrame methods to create and display a div with a copy of the img
      inside it.

      You will have to override the onDragDrop method to add a copy of the img
      to the target.

      Nige


      _____________________________________________________________________
      This message has been checked for all known viruses. Virus scanning
      powered by Messagelabs http://www.messagelabs.com For more information
      e-mail : hostmaster@...
    Your message has been successfully submitted and would be delivered to recipients shortly.