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

Animate kills Drag Drop?

Expand Messages
  • dub9155
    I m attempting to create a JavaScript jigsaw puzzle as part of my ongoing effort to better learn JavaScript - so yes, I am a n00b. The puzzle pieces start in
    Message 1 of 6 , Feb 2, 2009
    • 0 Attachment
      I'm attempting to create a JavaScript jigsaw puzzle as part of my
      ongoing effort to better learn JavaScript - so yes, I am a n00b.

      The puzzle pieces start in their assembled form, then you hit the
      shuffle button, which scatters the pieces by moving each piece to a
      random position with an attractive eased animation
      (YAHOO.util.Motion). However, after that happens I cannot get the drag
      drop (YAHOO.util.DD) to work on the pieces. I can get it to work
      before the animation does its thing, but not after. I've searched for
      other people having similar problems, and have found none, which tells
      me this is probably some stupid simple beginner mistake, but I can't
      figure it out for the life of me. Any insight anyone can provide would
      be greatly appreciated. Thanks!
    • Dav Glass
      dub9155 -- Please post a link so we can see the issue in the action.. If you don t want to send the link to the list, feel free to email me off-list ;) Dav --
      Message 2 of 6 , Feb 2, 2009
      • 0 Attachment
        dub9155 --

        Please post a link so we can see the issue in the action..

        If you don't want to send the link to the list, feel free to email me off-list ;)

        Dav

        --
        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 Mon, Feb 2, 2009 at 10:15 AM, dub9155 <joseph.wolfe@...> wrote:

        I'm attempting to create a JavaScript jigsaw puzzle as part of my
        ongoing effort to better learn JavaScript - so yes, I am a n00b.

        The puzzle pieces start in their assembled form, then you hit the
        shuffle button, which scatters the pieces by moving each piece to a
        random position with an attractive eased animation
        (YAHOO.util.Motion). However, after that happens I cannot get the drag
        drop (YAHOO.util.DD) to work on the pieces. I can get it to work
        before the animation does its thing, but not after. I've searched for
        other people having similar problems, and have found none, which tells
        me this is probably some stupid simple beginner mistake, but I can't
        figure it out for the life of me. Any insight anyone can provide would
        be greatly appreciated. Thanks!


      • dub9155
        http://joe.jkeillor.com/index.html Thanks in advance for your time!
        Message 3 of 6 , Feb 2, 2009
        • 0 Attachment
          http://joe.jkeillor.com/index.html
          Thanks in advance for your time!


          --- In ydn-javascript@yahoogroups.com, "dub9155" <joseph.wolfe@...> wrote:
          >
          > I'm attempting to create a JavaScript jigsaw puzzle as part of my
          > ongoing effort to better learn JavaScript - so yes, I am a n00b.
          >
          > The puzzle pieces start in their assembled form, then you hit the
          > shuffle button, which scatters the pieces by moving each piece to a
          > random position with an attractive eased animation
          > (YAHOO.util.Motion). However, after that happens I cannot get the drag
          > drop (YAHOO.util.DD) to work on the pieces. I can get it to work
          > before the animation does its thing, but not after. I've searched for
          > other people having similar problems, and have found none, which tells
          > me this is probably some stupid simple beginner mistake, but I can't
          > figure it out for the life of me. Any insight anyone can provide would
          > be greatly appreciated. Thanks!
          >
        • dub9155
          http://joe.jkeillor.com/index.html Thank you!!!
          Message 4 of 6 , Feb 2, 2009
          • 0 Attachment
            http://joe.jkeillor.com/index.html
            Thank you!!!

            --- In ydn-javascript@yahoogroups.com, Dav Glass <davglass@...> wrote:
            >
            > dub9155 --
            >
            > Please post a link so we can see the issue in the action..
            >
            > If you don't want to send the link to the list, feel free to email me
            > off-list ;)
            >
            > Dav
            >
            > --
            > 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 Mon, Feb 2, 2009 at 10:15 AM, dub9155 <joseph.wolfe@...> wrote:
            >
            > > I'm attempting to create a JavaScript jigsaw puzzle as part of my
            > > ongoing effort to better learn JavaScript - so yes, I am a n00b.
            > >
            > > The puzzle pieces start in their assembled form, then you hit the
            > > shuffle button, which scatters the pieces by moving each piece to a
            > > random position with an attractive eased animation
            > > (YAHOO.util.Motion). However, after that happens I cannot get the drag
            > > drop (YAHOO.util.DD) to work on the pieces. I can get it to work
            > > before the animation does its thing, but not after. I've searched for
            > > other people having similar problems, and have found none, which tells
            > > me this is probably some stupid simple beginner mistake, but I can't
            > > figure it out for the life of me. Any insight anyone can provide would
            > > be greatly appreciated. Thanks!
            > >
            > >
            > >
            >
          • Dav Glass
            dub9155 -- DragDrop is actually working ;) You issue is that you are positioning the tiles to the lower part of the page and the element #tray is sitting on
            Message 5 of 6 , Feb 2, 2009
            • 0 Attachment
              dub9155 --

              DragDrop is actually working ;)

              You issue is that you are positioning the tiles to the lower part of the page and the element #tray is sitting on top of them ;)

              Add this CSS to see:

              #tray {
                 background-color: red;
              }

              Now you should see that the red box is over the tiles.

              Adding this css should fix it:
              #tray {
                  z-index: -1;
              }

              Does that help?
              Dav

              --
              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 Mon, Feb 2, 2009 at 12:02 PM, dub9155 <joseph.wolfe@...> wrote:

              http://joe.jkeillor.com/index.html
              Thanks in advance for your time!



              --- In ydn-javascript@yahoogroups.com, "dub9155" <joseph.wolfe@...> wrote:
              >
              > I'm attempting to create a JavaScript jigsaw puzzle as part of my
              > ongoing effort to better learn JavaScript - so yes, I am a n00b.
              >
              > The puzzle pieces start in their assembled form, then you hit the
              > shuffle button, which scatters the pieces by moving each piece to a
              > random position with an attractive eased animation
              > (YAHOO.util.Motion). However, after that happens I cannot get the drag
              > drop (YAHOO.util.DD) to work on the pieces. I can get it to work
              > before the animation does its thing, but not after. I've searched for
              > other people having similar problems, and have found none, which tells
              > me this is probably some stupid simple beginner mistake, but I can't
              > figure it out for the life of me. Any insight anyone can provide would
              > be greatly appreciated. Thanks!
              >


            • dub9155
              O. M. F. G. Well, I did predict it would be something stupid. Thanks, Dav. Who knows how long I would have hit my head on the desk before that dawned on me...
              Message 6 of 6 , Feb 3, 2009
              • 0 Attachment
                O. M. F. G. Well, I did predict it would be something stupid. Thanks,
                Dav. Who knows how long I would have hit my head on the desk before
                that dawned on me...


                --- In ydn-javascript@yahoogroups.com, Dav Glass <davglass@...> wrote:
                >
                > dub9155 --
                >
                > DragDrop is actually working ;)
                >
                > You issue is that you are positioning the tiles to the lower part of the
                > page and the element #tray is sitting on top of them ;)
                >
                > Add this CSS to see:
                >
                > #tray {
                > background-color: red;
                > }
                >
                > Now you should see that the red box is over the tiles.
                >
                > Adding this css should fix it:
                > #tray {
                > z-index: -1;
                > }
                >
                > Does that help?
                > Dav
                >
                > --
                > 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 Mon, Feb 2, 2009 at 12:02 PM, dub9155 <joseph.wolfe@...> wrote:
                >
                > > http://joe.jkeillor.com/index.html
                > > Thanks in advance for your time!
                > >
                > >
                > > --- In ydn-javascript@yahoogroups.com
                <ydn-javascript%40yahoogroups.com>,
                > > "dub9155" <joseph.wolfe@> wrote:
                > > >
                > > > I'm attempting to create a JavaScript jigsaw puzzle as part of my
                > > > ongoing effort to better learn JavaScript - so yes, I am a n00b.
                > > >
                > > > The puzzle pieces start in their assembled form, then you hit the
                > > > shuffle button, which scatters the pieces by moving each piece to a
                > > > random position with an attractive eased animation
                > > > (YAHOO.util.Motion). However, after that happens I cannot get
                the drag
                > > > drop (YAHOO.util.DD) to work on the pieces. I can get it to work
                > > > before the animation does its thing, but not after. I've
                searched for
                > > > other people having similar problems, and have found none, which
                tells
                > > > me this is probably some stupid simple beginner mistake, but I can't
                > > > figure it out for the life of me. Any insight anyone can provide
                would
                > > > be greatly appreciated. Thanks!
                > > >
                > >
                > >
                > >
                >
              Your message has been successfully submitted and would be delivered to recipients shortly.