onmouseup event cannot be handled in IE7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chathuram
    New Member
    • Mar 2008
    • 4

    onmouseup event cannot be handled in IE7

    Hi,
    I am new to Javascript and HTML. I wrote some codes in html and Javascript to display a scrollbar using a <div> tag as follows.

    [HTML]<div id="id1" onmouseup="call Me()" style="width:25 0px;height:30px ;overflow:scrol l">
    <strong>hhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhh</strong>
    </div> [/HTML]

    but the problem is callMe() function is not called in IE7 but it is called in Mozilla-Firefox i am confused on this.... why is it happening like that ? can someone just explain? Why does the IE7 cannot handle onmouseup event?
    Last edited by gits; Apr 10 '08, 03:10 PM. Reason: added code tags
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    Since your question relates to the callMe() function it would be a good idea to post the code for that function. Have you isolated the problem as the event not triggering? If not I would make the change shown below to test it. If you see the alert box the problem is the function not the event.

    [HTML]<div id="id1" onmouseup="alert('On MouseUp event triggerd!');" style="width:25 0px;height:30px ;overflow:scrol l">
    <strong>hhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhh</strong>
    </div> [/HTML]

    Comment

    • chathuram
      New Member
      • Mar 2008
      • 4

      #3
      Nop ... I tried it .. it's not the function but the event. But I found something interesting that if I clicked on the "hhhhhhhhhhhhhh hhhhhhhhhhhhhhh hhhhhhhhhhhhhh" value then onmouseup gets fired and the function is invoked. But if I do the same thing for the scrollbar appeared in the page and it does not work where it is possible in Firefox

      Comment

      Working...