473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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="callMe()" style="width:250px;height:30px;overflow:scroll">
<strong>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh </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?
Apr 10 '08 #1
2 2000
pronerd
392 Expert 256MB
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:250px;height:30px;overflow:scroll">
<strong>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh </strong>
</div> [/HTML]
Apr 10 '08 #2
Nop ... I tried it .. it's not the function but the event. But I found something interesting that if I clicked on the "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh" 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
Apr 11 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Smith | last post by:
In the code snippet below, I tried to allow the user to choose a page to view by selecting an item from a dropdown list. I could make it work on Mozilla and related browsers, but I couldn't make it...
18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
1
by: coolsti | last post by:
I am trying to let the user drag a rectangle over an image, which will then let the user zoom in on the dragged area. However, I am doing something wrong in implementing the onmousedown and...
0
by: Scott | last post by:
I have a derived DataGrid class that I'm using to allow the user to highlight multiple cells for cut/copy/paste (in addition to several other features.) When the user selects to open a new file...
3
by: Scott | last post by:
I have a derived DataGrid class that overrides the OnMouseUp event so that I can highlight multiple cells for cut/copy/paste functionality. When the user selects to open a new file via a...
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
7
by: Michael D. Ober | last post by:
Is there anyway to raise an event from a class and require that any program using that class (not just inheritance) have an event handler for specific events in the class? In my case, some events...
2
by: David Wake | last post by:
I am a complete Javscript newbie trying to produce a user interface similar to Google Maps -- the user should be able to click anywhere on the map and drag it in any direction. The Javascript...
9
by: jon | last post by:
Hello, I'm trying to experiment with some javascript to do some custom dragdrop handling. I wish to use the onMouseDown event to trigger the start of my drag, and onMouseup for a potentential...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.