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

Is YUI Drag and Drop is applicable to Anchor Elements?

Expand Messages
  • maddy_304
    Hi, I tried YUI drag and drop for LI s (list elements in a UL) and it is working fine. But when i do the same for Anchor elements (hyperlinks on my page.) it
    Message 1 of 3 , Nov 16, 2009
      Hi,
      I tried YUI drag and drop for LI's (list elements in a UL) and it is working fine. But when i do the same for Anchor elements (hyperlinks on my page.) it is not working.


      Can some body provide me some clarification on whether we can make anchor elements (hyperlinks) draggble or not?

      Thanks,
      Maddy.
    • Dav Glass
      Maddy -- Yes, you can drag links. But, by default DragDrop ignores clicks on links (since they are supposed to be followed). Try this: var dd = new
      Message 2 of 3 , Nov 16, 2009
        Maddy --

        Yes, you can drag links. But, by default DragDrop ignores clicks on links (since they are supposed to be followed).

        Try this:

        var dd = new YAHOO.util.DD('link');
        dd.removeInvalidHandleType('a');

        That should make it draggable.

        Dav


        On Mon, 16 Nov 2009, maddy_304 wrote:

        > Hi,
        > I tried YUI drag and drop for LI's (list elements in a UL) and it is working fine. But when i do the same for Anchor elements (hyperlinks on my page.) it is not working.
        >
        >
        > Can some body provide me some clarification on whether we can make anchor elements (hyperlinks) draggble or not?
        >
        > Thanks,
        > Maddy.
        >

        --
        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 +
      • madan vetcha
        Thankyou so much Dav, That is working for me.... :) -Madan. ________________________________ From: Dav Glass To:
        Message 3 of 3 , Nov 16, 2009
          Thankyou so much Dav,
          That is working for me.... :)
           
          -Madan.


          From: Dav Glass <davglass@...>
          To: ydn-javascript@yahoogroups.com
          Sent: Mon, 16 November, 2009 8:01:40 PM
          Subject: Re: [ydn-javascript] Is YUI Drag and Drop is applicable to Anchor Elements?

           

          Maddy --

          Yes, you can drag links. But, by default DragDrop ignores clicks on links (since they are supposed to be followed).

          Try this:

          var dd = new YAHOO.util.DD( 'link');
          dd.removeInvalidHan dleType(' a');

          That should make it draggable.

          Dav

          On Mon, 16 Nov 2009, maddy_304 wrote:

          > Hi,
          > I tried YUI drag and drop for LI's (list elements in a UL) and it is working fine. But when i do the same for Anchor elements (hyperlinks on my page.) it is not working.
          >
          >
          > Can some body provide me some clarification on whether we can make anchor elements (hyperlinks) draggble or not?
          >
          > Thanks,
          > Maddy.
          >

          --
          Dav Glass
          davglass@gmail. com
          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 +



          The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
        Your message has been successfully submitted and would be delivered to recipients shortly.