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

Drag drop methods and events of Target object never get fired!

Expand Messages
  • jjohnson151
    Hi, I set up a YAHOO.util.DDTarget objects as follows: YAHOO.util.Event.onDOMReady(function() { // Initialize the component for drop initDragDrop(); });
    Message 1 of 3 , Nov 12, 2008
      Hi,

      I set up a YAHOO.util.DDTarget objects as follows:

             YAHOO.util.Event.onDOMReady(function() {
                      // Initialize the component for drop
                      initDragDrop();
                  });

                  function initDragDrop() {
                      var dd = new YAHOO.util.DDTarget('content');
                      dd.onDragDrop = function() {
                          alert('onDragDrop');
                      }
                      dd.onDragOver = function() {
                          alert('onDragOver');
                      }
                      dd.on('dragDropEvent', function(ev) {
                          alert('dragDropEvent');
                      }, dd, true);
                  }


      The 'onDragDrop' method of the dragged object gets fired but the onDragDrop, onDragOver and dragDropEvent methods for the DDTarget object (as defined above) never get fired.  I'm using YUI 2.6.0.

      Can anyone help?

      Thanks!

      -j
    • Dav Glass
      j-- Drop targets never fire events, you access all information & events from the drag object.. Dav Dav Glass dav.glass@yahoo.com blog.davglass.com + Windows:
      Message 2 of 3 , Nov 12, 2008
        j--

        Drop targets never fire events, you access all information & events from the drag object..

        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  +


        On Wed, Nov 12, 2008 at 5:44 PM, jjohnson151 <jjohnson151@...> wrote:
        Hi,

        I set up a YAHOO.util.DDTarget objects as follows:

               YAHOO.util.Event.onDOMReady(function() {
                        // Initialize the component for drop
                        initDragDrop();
                    });

                    function initDragDrop() {
                        var dd = new YAHOO.util.DDTarget('content');
                        dd.onDragDrop = function() {
                            alert('onDragDrop');
                        }
                        dd.onDragOver = function() {
                            alert('onDragOver');
                        }
                        dd.on('dragDropEvent', function(ev) {
                            alert('dragDropEvent');
                        }, dd, true);
                    }


        The 'onDragDrop' method of the dragged object gets fired but the onDragDrop, onDragOver and dragDropEvent methods for the DDTarget object (as defined above) never get fired.  I'm using YUI 2.6.0.

        Can anyone help?

        Thanks!

        -j

      • jjohnson151
        Thanks for the info. -j ... from the ... object (as
        Message 3 of 3 , Nov 12, 2008
          Thanks for the info.

          -j


          --- In ydn-javascript@yahoogroups.com, "Dav Glass" <dav.glass@...> wrote:
          >
          > j--
          >
          > Drop targets never fire events, you access all information & events
          from the
          > drag object..
          >
          > 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 +
          >
          >
          > On Wed, Nov 12, 2008 at 5:44 PM, jjohnson151 <jjohnson151@...> wrote:
          >
          > > Hi,
          > >
          > > I set up a YAHOO.util.DDTarget objects as follows:
          > >
          > > YAHOO.util.Event.onDOMReady(function() {
          > > // Initialize the component for drop
          > > initDragDrop();
          > > });
          > >
          > > function initDragDrop() {
          > > var dd = new YAHOO.util.DDTarget('content');
          > > dd.onDragDrop = function() {
          > > alert('onDragDrop');
          > > }
          > > dd.onDragOver = function() {
          > > alert('onDragOver');
          > > }
          > > dd.on('dragDropEvent', function(ev) {
          > > alert('dragDropEvent');
          > > }, dd, true);
          > > }
          > >
          > > The 'onDragDrop' method of the dragged object gets fired but the
          > > onDragDrop, onDragOver and dragDropEvent methods for the DDTarget
          object (as
          > > defined above) never get fired. I'm using YUI 2.6.0.
          > >
          > > Can anyone help?
          > >
          > > Thanks!
          > >
          > > -j
          > >
          > >
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.