How can we know the drag event inside the textbox using javascript?

Discussion in 'JavaScript' started by roshanbh, May 4, 2008.

  1. #1
    Well, I've a textbox in my form and I want to handle the drag event inside that textbox. If someboxy drags over that textbox I want to display the erro message. Does anyone know how to know the drag even inside the textbox ??
     
    roshanbh, May 4, 2008 IP
  2. premium_coder

    premium_coder Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    javascript has an event called onDragLeave that will do what you want
     
    premium_coder, May 4, 2008 IP
  3. premium_coder

    premium_coder Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if you want an example just tell me or if you want i help you let me know
     
    premium_coder, May 4, 2008 IP
  4. roshanbh

    roshanbh Peon

    Messages:
    52
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    please can you write two line of code in which it just alert hi on the dragevent...
     
    roshanbh, May 4, 2008 IP
  5. premium_coder

    premium_coder Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try this and tell me if this is what you want

     
    premium_coder, May 5, 2008 IP
  6. roshanbh

    roshanbh Peon

    Messages:
    52
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks premium coder....thats what I wanted.........thanks a lot for this......
     
    roshanbh, May 6, 2008 IP