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

Re: Problems with drag&drop and events

Expand Messages
  • josep.pijuan
    I am puzzled. I ve changed my code and I ve adapted it to your answer. And now it works. I tested this way some days ago and it didn t run, I wonder that I
    Message 1 of 3 , Apr 28, 2009
    • 0 Attachment
      I am puzzled.

      I've changed my code and I've adapted it to your answer. And now it works.

      I tested this way some days ago and it didn't run, I wonder that I know why it didn't work. Before that I inserted the panel's html into another div (the parent) using innerHTML, and then I initialized the yui panel. But I changed it because when I inserted a new panel the input's values of the other panels were dropped. Now I'm using the YAHOO.Dom.insertAfter function. And it works perfectly.

      The events problem it's also solved.

      Another time, Thank you very much Dav

      Josep



      --- In ydn-javascript@yahoogroups.com, Dav Glass <davglass@...> wrote:
      >
      > Why do you need to reinitialize the entire list?
      >
      > Based on that example, you would just have to call:
      >
      > new YAHOO.example.DDList("MY NEW ID");
      >
      > --
      > Dav Glass
      > davglass@...
      > 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 +
      >
      >
      >
      > On Tue, Apr 28, 2009 at 7:55 AM, josep.pijuan <josep.pira@...> wrote:
      > >
      > >
      > > Hello,
      > >
      > > I'm using drag & drop to reorder a list of panels. I follow the yui example
      > > http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html. I have two
      > > questions/problems:
      > >
      > > 1)
      > >
      > > I want to create some panels dynamically after initialize drag & drop, and
      > > drag & drop these panels in conjunction with the other.
      > >
      > > At the moment I only can do it reinitializing the drag and drop. Is there
      > > any other way to do this?
      > >
      > > 2)
      > >
      > > When I reinitialize the drag & drop I lose the listeners of the previous
      > > panels, and I have to add all listeners again. How can I avoid this problem?
      > >
      > > Thanks in advance
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.