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. Advertising

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. PilotYid
    Replies:
    4
    Views:
    400
    Andrey Kuznetsov
    Dec 28, 2005
  2. Replies:
    3
    Views:
    714
  3. Ben
    Replies:
    2
    Views:
    859
  4. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    1,961
    Lawrence D'Oliveiro
    May 20, 2011
  5. vunet
    Replies:
    6
    Views:
    129
    vunet
    Apr 23, 2008
Loading...

Share This Page