prevent an sub area in a draggable area to detect dragging event

Discussion in 'Javascript' started by Jim, Nov 21, 2006.

  1. Jim

    Jim Guest

    I have a div V contains two areas: a header area A and a body area B.

    The div is set to be a dragSource but I want to allow the V to be
    dragged
    only when users drag the header. That is, V won't move when users
    try to drag it by mouse down on B and move mouse.

    I tried to use cancelBubble at B to block drag related events bubble to
    V when users
    drag B. I had try ondrag ondragstart and onselectstart and also set
    canCancelBubble true.
    But all failed to stop the dragging events from being passing to V.

    Any suggestions?

    thank
     
    Jim, Nov 21, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    847
  2. Ben
    Replies:
    2
    Views:
    1,217
  3. Replies:
    1
    Views:
    441
    Lionel B
    May 29, 2008
  4. James Hunter Ross

    Detect/prevent multiple tab/browser...

    James Hunter Ross, Jun 4, 2009, in forum: ASP .Net
    Replies:
    6
    Views:
    8,289
    Patrice
    Sep 22, 2009
  5. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    2,947
    Lawrence D'Oliveiro
    May 20, 2011
  6. Cues Plus

    Prevent quotes in form text area

    Cues Plus, Dec 17, 2003, in forum: Javascript
    Replies:
    7
    Views:
    306
    Cues Plus
    Dec 20, 2003
  7. Mike Scirocco
    Replies:
    4
    Views:
    420
    Mike Scirocco
    Apr 5, 2007
  8. vunet
    Replies:
    6
    Views:
    194
    vunet
    Apr 23, 2008
Loading...