1 | <html> |
---|
2 | <head> |
---|
3 | <script type="text/javascript" src="jquery.pack.js">/* jQuery core */</script> |
---|
4 | <script type='text/javascript'> |
---|
5 | |
---|
6 | $(document).ready(function(){ |
---|
7 | $('#DoubleClickTest').dblclick(function(){ |
---|
8 | alert("Double-click handler called."); |
---|
9 | }); |
---|
10 | }); |
---|
11 | </script> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <div id='DoubleClickTest'>double-clicking this field should pop up an alert()</div> |
---|
15 | |
---|
16 | <!-- |
---|
17 | Hiya! |
---|
18 | |
---|
19 | It would seem that adding a .dblclick() handler is useless in konqueror 3.5.7 (don't know about other versions). A .click() handler works fine, but a .dblclick() handler is never called (same code works in Firefox 2.0.0.4, though). |
---|
20 | |
---|
21 | i've tried both 1.1.3.1 and the latest CVS code (as of 02:00 GMT+1, 10th July 2007). |
---|
22 | |
---|
23 | A test case is attached, but you must replace the internal jquery.pack.js URL with your own. |
---|
24 | |
---|
25 | Err.... creating the ticket with attachment FAILED due to lack of space on the target drive. So i'm pasting in the test case code here: |
---|
26 | |
---|
27 | |
---|
28 | {{{ |
---|
29 | <script type='text/javascript'> |
---|
30 | |
---|
31 | $(document).ready(function(){ |
---|
32 | $('#DoubleClickTest').dblclick(function(){ |
---|
33 | alert("Double-click handler called."); |
---|
34 | }); |
---|
35 | }); |
---|
36 | </script> |
---|
37 | |
---|
38 | <div id='DoubleClickTest'>double-clicking this field should pop up an alert()</div> |
---|
39 | }}} |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | In Firefox 2.0.0.4 that calls alert() on a dblclick, but in konqi the handler is never called. |
---|
44 | |
---|
45 | --> |
---|
46 | |
---|
47 | |
---|
48 | </body></html> |
---|