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

Re: [ydn-javascript] DragDrop fire custom Event to start dragging

Expand Messages
  • Dav Glass
    ak_9992000 -- Since you are moving it before DragDrop can do anything with it, you might try this approach: After you move the element: var dd = new
    Message 1 of 2 , Jun 30, 2008
      ak_9992000 --

      Since you are moving it before DragDrop can do anything with it, you might try this approach:

      After you move the element:

      var dd = new YAHOO.util.DD(id); //Unless you already have this info..

      dd.handleMouseDown(ev); //Pass the mousedown DOM event to the handleMouseDown method of the dd instance

      Does that help?
      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: ak_9992000 <andrew@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Monday, June 30, 2008 6:01:58 AM
      Subject: [ydn-javascript] DragDrop fire custom Event to start dragging

      What I'm trying to do

      User gives mousedown event on a large div (with agenda layout).
      A drapdrop element jumps to the location of the mousedown event.
      User drags the dragdrop element to precisely locate the beginning time
      for an appointment.
      User releases mouse, dragdrop 'helper' element disappears and
      appointment create window opens with information including precisely
      located start time.

      The problem

      Having moved the dragdrop element to where the mousedown event occurred
      (using Dom.setXY), how can I get it to start dragging without the user
      having to reclick.

      Thanks for any help.


      ------------------------------------

      Yahoo! Groups Links
    Your message has been successfully submitted and would be delivered to recipients shortly.