473,405 Members | 2,287 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,405 software developers and data experts.

Problem with onmouseup event in IE

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 work on Internet
Explorer. It *seems* that on IE, when the user highlights an item on a
dropdown list and then let go of the mouse button, no onmouseup event is
generated.

Can somebody tell me what the problem was?

<form>
<select>
<option value="option1"
onmouseup="javascript:parent.frames['main'].location.href='page1.htm'">Page
1</option>
<option value="option2"
onmouseup="javascript:parent.frames['main'].location.href='page2.htm'">Page
2</option>
</select>
</form>

Thanks in advance.
Jul 20 '05 #1
1 6075
John Smith <us**@example.net> wrote:
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.
That's a wrong approach, and using frames makes it even more wrong.
See http://www.cs.tut.fi/~jkorpela/forms/navmenu.html
I could make it
work on Mozilla and related browsers, but I couldn't make it work on
Internet Explorer. It *seems* that on IE, when the user highlights an
item on a dropdown list and then let go of the mouse button, no
onmouseup event is generated.


That's quite possible. Support to event attributes depends inherently on
the browser (and its settings). At one extreme, all event attributes are
ignored; at the other, more rare, extreme, all event attributes are
supported for all elements as specified in HTML specifications (and
possibly more) - though this is vaguely defined (the specifications don't
specify very exactly what triggers each event).

Out of curiosity, I created a page for testing event attributes:
http://www.cs.tut.fi/~jkorpela/html/events.html
And it seems that on IE 6, _no_ event attributes have any effect in
<option> elements. When you select an item from a <select> list, some
events are triggered for the <select> element, not for the <option>
selected.

P.S. You had set followups to alt.html.critique too. That was very
unfriendly - people there would see followups coming out of thin air,
without having seen the original message. Besides, the good old rule is
to post to _one_ group after selecting carefully the _right_ group.
This, together with your forged From line, suggests that you need to
study the basics of Usenet netiquette.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: rdlebreton | last post by:
Hi, Folks! I've been trying to develop my own version of these draggable layers and I have been limiting myself to IE6...for now. I have looked at some other examples to get ideas of creating...
33
by: abs | last post by:
Hi all. My list: <ul> <li id="a" onclick="show(this)">Aaaaaaaa</li> <li id="b" onclick="show(this)">Bbbbbbbb</li> <li id="c" onclick="show(this)">Cccccccc <ul> <li id="d"...
1
by: Christoph | last post by:
Hi I have different images which i use to simulate a button behaviour. This looks as follows: if (document.images) { toc1over = new Image(31,54); toc1over.src = "b go focus.bmp"; toc1down=...
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...
4
by: steve bull | last post by:
I have created a UserControl and added it to my toolbox. It appears in the toolbox with the icon I created for it. The problem is that when I drag the control onto a form no code is generated. If I...
0
by: Sudhakar S P | last post by:
Using Microsoft Web Browser control with windows form in VB.NET 2003 I have problem getting events to work properly, can anyone help me here, 1. Reading the data from the database, looping...
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...
3
by: Mark Szlazak | last post by:
The following page simulates a pool cue and cue ball: http://members.aol.com/myscript/cue.html Mouse cursor position around the cue ball determines where a roll-over of 179 pool cue images is...
3
by: Ralph | last post by:
Hi i have simple page. It's generating table. then id like to be able to select rows or columns with mouse. the ones that i drag over are changed to different color. It's working fine with FF but...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.