Bug 54424 - onClick does not work when the cursor does not move[testcase]
Summary: onClick does not work when the cursor does not move[testcase]
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 55186 57696 60932 62853 69329 72152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-10 19:36 UTC by Jan Halasa
Modified: 2004-01-08 16:08 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A more minimalistic testcase (94 bytes, text/html)
2003-07-11 22:28 UTC, Maksim Orlovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Halasa 2003-02-10 19:36:18 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs
Compiler:          gcc 3.2 
OS:          Linux

Hello,

clicking several times without moving the cursor (or moving only few pixels) triggers only one onClick event - after the first click. You can try it using the following code:
------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
  <TITLE>JS - test</TITLE>
  <SCRIPT LANGUAGE="JavaScript"><!--
  function changeMenu(item) {
    nodeContent = document.getElementById(item);
    if (nodeContent.style.display == "none") {
      nodeContent.style.display = "";
    }
    else {
      nodeContent.style.display = "none";
    }
  }
  // -->
  </SCRIPT>
</HEAD>

<BODY>


<SPAN ONCLICK="javascript: changeMenu('node1');">Tree item</SPAN><BR>
<SPAN ID="node1" STYLE="display: none;">
  -&gt; Content
</SPAN>

</BODY>
</HTML>
------------------------------------------------------------

Jan Halasa
Comment 1 Marco Pratesi 2003-05-03 13:34:50 UTC
I can confirm this bug and provide a test page for it:

http://www.telug.it/marco/phplayersmenu-2.3.2/test1.php

I have workarounded it in newer versions of PHP Layers Menu
( http://phplayersmenu.sourceforge.net/ )
by using the "onmousedown" event instead of the "onclick" event,
but IMO this bug should be fixed even though a workaround exists.

Some further informations: I'm running Mandrake Linux 9.1 with KDE 3.1
(gcc 3.2.2), but the same bug is observed with KDE 3.1 and 3.1.1 on RH 7.3
(gcc 2.96, ASPLinux packages) and with KDE 3.1 and 3.1.1 on Debian 3.0 "Woody"
(gcc 2.95).

Marco Pratesi
Comment 2 Maksim Orlovich 2003-07-11 22:19:07 UTC
*** Bug 60932 has been marked as a duplicate of this bug. ***
Comment 3 Maksim Orlovich 2003-07-11 22:28:46 UTC
Created attachment 1993 [details]
A more minimalistic testcase

Interestingly enough, moving the mouse one or 2 pixels doesn't make it see new
clicks either
Comment 4 Maksim Orlovich 2003-07-16 19:15:47 UTC
*** Bug 58241 has been marked as a duplicate of this bug. ***
Comment 5 Andr 2003-07-18 23:28:32 UTC
i can confirm this here with kde 3.1.2 from a gentoo linux build (gcc 3.2.2). 
i have a href="javascript:..." construct here and only work once when not moving 
the mouse. 
Comment 6 Maksim Orlovich 2003-08-18 00:57:55 UTC
*** Bug 55186 has been marked as a duplicate of this bug. ***
Comment 7 Maksim Orlovich 2003-08-18 01:00:43 UTC
*** Bug 62853 has been marked as a duplicate of this bug. ***
Comment 8 groot 2003-08-25 23:25:38 UTC
Still present in _BRANCH and in HEAD as of 25 aug. 2003. _double_ clicking on 
such a javascript link in HEAD does yield one useful click to the script. 
Comment 9 Maksim Orlovich 2003-08-31 00:08:49 UTC
*** Bug 57696 has been marked as a duplicate of this bug. ***
Comment 10 Maksim Orlovich 2003-10-29 15:46:38 UTC
Fixed by David Faure for 3.2

Comment 11 Maksim Orlovich 2003-11-30 18:07:58 UTC
*** Bug 69329 has been marked as a duplicate of this bug. ***
Comment 12 Maksim Orlovich 2004-01-08 16:08:09 UTC
*** Bug 72152 has been marked as a duplicate of this bug. ***