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

select element and drag-drop

Expand Messages
  • Jacob Davenport
    I have a drag and drop span that has a select list in it, and the list is disabled. When I click on the span, I have no problem dragging it, except if I click
    Message 1 of 6 , May 6, 2008
    • 0 Attachment
      I have a drag and drop span that has a select list in it, and the list
      is disabled. When I click on the span, I have no problem dragging it,
      except if I click on the select list. How can I tell the browser to
      ignore the select list and let me drag the span?

      Thanks,
      Jacob
    • bcomeara
      I have a similar problem, which shows up in Safari (v 3.1.1, Mac OS 10.5) but not Firefox (2.0.0.14, Mac OS 10.5): in Safari, you can drag and drop the li
      Message 2 of 6 , May 18, 2008
      • 0 Attachment
        I have a similar problem, which shows up in Safari (v 3.1.1, Mac OS 10.5) but not Firefox
        (2.0.0.14, Mac OS 10.5): in Safari, you can drag and drop the li elements, but the select box
        cannot be used (but select boxes elsewhere on the page do work) . I've posted a very slightly
        modified version of the the YUI "drag and drop to reorder a list" example to show this
        behavior at http://www.brianomeara.info/drag.html .

        Brian

        --- In ydn-javascript@yahoogroups.com, "Jacob Davenport" <jacob@...> wrote:
        >
        > I have a drag and drop span that has a select list in it, and the list
        > is disabled. When I click on the span, I have no problem dragging it,
        > except if I click on the select list. How can I tell the browser to
        > ignore the select list and let me drag the span?
        >
        > Thanks,
        > Jacob
        >
      • Dav Glass
        Brian -- This example fixes that: http://blog.davglass.com/files/yui/dd37/ I added this line: this.addInvalidHandleType( select ); At the end of this method:
        Message 3 of 6 , May 18, 2008
        • 0 Attachment
          Brian --

          This example fixes that:
          http://blog.davglass.com/files/yui/dd37/

          I added this line:

          this.addInvalidHandleType('select');
          At the end of this method:

          YAHOO.example.DDList = function(id, sGroup, config) {That line tells DragDrop to ignore all drag attempts on a select element..

          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: bcomeara <omeara.brian@...>
          To: ydn-javascript@yahoogroups.com
          Sent: Sunday, May 18, 2008 1:37:43 PM
          Subject: [ydn-javascript] Re: select element and drag-drop

          I have a similar problem, which shows up in Safari (v 3.1.1, Mac OS 10.5) but not Firefox
          (2.0.0.14, Mac OS 10.5): in Safari, you can drag and drop the li elements, but the select box
          cannot be used (but select boxes elsewhere on the page do work) . I've posted a very slightly
          modified version of the the YUI "drag and drop to reorder a list" example to show this
          behavior at http://www.brianomeara.info/drag.html .

          Brian

          --- In ydn-javascript@yahoogroups.com, "Jacob Davenport" <jacob@...> wrote:
          >
          > I have a drag and drop span that has a select list in it, and the list
          > is disabled. When I click on the span, I have no problem dragging it,
          > except if I click on the select list. How can I tell the browser to
          > ignore the select list and let me drag the span?
          >
          > Thanks,
          > Jacob
          >




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

          Yahoo! Groups Links
        • Mark Ireland
          You are trying to override a fundemental default behaviour. Can you try a div with overflow:scroll instead? To: ydn-javascript@yahoogroups.com From:
          Message 4 of 6 , May 19, 2008
          • 0 Attachment
            You are trying to override a fundemental default behaviour.

            Can you try a div with overflow:scroll instead?


            To: ydn-javascript@yahoogroups.com
            From: omeara.brian@...
            Date: Sun, 18 May 2008 20:37:43 +0000
            Subject: [ydn-javascript] Re: select element and drag-drop

            I have a similar problem, which shows up in Safari (v 3.1.1, Mac OS 10.5) but not Firefox
            (2.0.0.14, Mac OS 10.5): in Safari, you can drag and drop the li elements, but the select box
            cannot be used (but select boxes elsewhere on the page do work) . I've posted a very slightly
            modified version of the the YUI "drag and drop to reorder a list" example to show this
            behavior at http://www.brianome ara.info/ drag.html .

            Brian

            --- In ydn-javascript@ yahoogroups. com, "Jacob Davenport" <jacob@...> wrote:
            >
            > I have a drag and drop span that has a select list in it, and the list
            > is disabled. When I click on the span, I have no problem dragging it,
            > except if I click on the select list. How can I tell the browser to
            > ignore the select list and let me drag the span?
            >
            > Thanks,
            > Jacob
            >




            Hotmail on your mobile. Never miss another e-mail with
          • bcomeara
            That fixes it perfectly. Thank you. Brian ... ignore all drag attempts on a select element.. ... box ... slightly
            Message 5 of 6 , May 19, 2008
            • 0 Attachment
              That fixes it perfectly. Thank you.

              Brian

              --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
              >
              > Brian --
              >
              > This example fixes that:
              > http://blog.davglass.com/files/yui/dd37/
              >
              > I added this line:
              >
              > this.addInvalidHandleType('select');
              > At the end of this method:
              >
              > YAHOO.example.DDList = function(id, sGroup, config) {That line tells DragDrop to
              ignore all drag attempts on a select element..
              >
              > 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: bcomeara <omeara.brian@...>
              > To: ydn-javascript@yahoogroups.com
              > Sent: Sunday, May 18, 2008 1:37:43 PM
              > Subject: [ydn-javascript] Re: select element and drag-drop
              >
              > I have a similar problem, which shows up in Safari (v 3.1.1, Mac OS 10.5) but not Firefox
              > (2.0.0.14, Mac OS 10.5): in Safari, you can drag and drop the li elements, but the select
              box
              > cannot be used (but select boxes elsewhere on the page do work) . I've posted a very
              slightly
              > modified version of the the YUI "drag and drop to reorder a list" example to show this
              > behavior at http://www.brianomeara.info/drag.html .
              >
              > Brian
              >
              > --- In ydn-javascript@yahoogroups.com, "Jacob Davenport" <jacob@> wrote:
              > >
              > > I have a drag and drop span that has a select list in it, and the list
              > > is disabled. When I click on the span, I have no problem dragging it,
              > > except if I click on the select list. How can I tell the browser to
              > > ignore the select list and let me drag the span?
              > >
              > > Thanks,
              > > Jacob
              > >
              >
              >
              >
              >
              > ------------------------------------
              >
              > Yahoo! Groups Links
              >
            • Jacob Davenport
              That s very helpful, because it shows that I ve left out an important detail: I m trying to move around a span with a disabled select box, and yours is
              Message 6 of 6 , Jun 2, 2008
              • 0 Attachment
                That's very helpful, because it shows that I've left out an important
                detail: I'm trying to move around a span with a disabled select box,
                and yours is enabled. In your case, you want the select box to work.
                In my case, I know it won't work, and I don't want it to. I want it
                to remain disabled.

                So, it seems like the click to drag the span does not work when the
                click is on a disabled select box. Is there a way to have the browser
                send along clicks of the disabled box to the drag-and-drop function
                anyway?

                --- In ydn-javascript@yahoogroups.com, "bcomeara" <omeara.brian@...>
                wrote:
                > I have a similar problem...
                > I've posted a very slightly modified version ... to show this
                > behavior at http://www.brianomeara.info/drag.html .
              Your message has been successfully submitted and would be delivered to recipients shortly.