AnitaTang / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

that.all[...].events is null #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a link with an image:
<li><a href="/t99bWar/busquedaFirmanteJSP/#.do" id="botonLimpiar"><img
src="/t99bfrm/images/limpiar.gif" alt="Limpiar"></a></li>

I have a click event:
$('#botonLimpiar').click(function(){$("form")[0].reset();return false;});

I have "return" key:
$.hotkeys.add('return', function(){return false;});

If i press link and then press "return" key, i get an error in Internet
Explorer 6.0.2800.1106:
that.all[...].events is null

Any idea?

PD: Sorry about my english :(
PD2: Very nice work!!

Original issue reported on code.google.com by new...@gmail.com on 21 Sep 2007 at 11:28

GoogleCodeExporter commented 8 years ago
I will have an access to a machine with IE6 on Sunday. I will check this issue 
and
let you know.
In any case I would like to know if you face any problems with 'Return' key in 
the
live demo at http://jshotkeys.googlepages.com/test-static.html

Original comment by Afro.Sys...@gmail.com on 21 Sep 2007 at 4:25

GoogleCodeExporter commented 8 years ago
I just checked it on a machine with IE6 (Version:
6.0.2900.2180.xpsp_sp2_gdr.050301-1519) and it seems all to be working fine.
As a result, check if the demo works on your IE (6.0.2800). Sicne there is a 
'Return'
sample it should be a significant indicator in the elimination process.

You may send the page you are facing the problem with and I'll look into it.

Thanks for using HotKeys
Tzury

Original comment by Afro.Sys...@gmail.com on 21 Sep 2007 at 5:55

GoogleCodeExporter commented 8 years ago
Ok, i'll try on Monday, i have no access by now.

Thanks for your fast reply.

Original comment by new...@gmail.com on 21 Sep 2007 at 8:23

GoogleCodeExporter commented 8 years ago
I've created a sample

1. Open ie6.issue.html
2. Click on "Clear" link
3. Press "return"
4. Error message is reported by IE 6: that.all[...].events is null on line 79 
and car 13

Here is html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>hotkeys</title>
<link rel="stylesheet" type="text/css" media="screen" href="" />
<script src="jquery-1.1.4.js"></script>
<script src="jquery.hotkeys.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#idClear").click(function(){
            $("form")[0].reset();
            return false;
        });
        $("#idSearch").click(function(){
            $("form")[0].submit();
            return false;
        });
        $.hotkeys.add('return',function(){
            $("#idSearch").click();
        });
    });
</script>
</head>
<body>
<form action="#">
    T1: <input type="text" name="t1"/>
    S1: <select name="s1">
            <option value="1">v1</option>
            <option value="2">v2</option>
            <option value="3">v3</option>
        </select>
        <a id="idClear" href="#">Clear</a>
        <a id="idSearch" href="#">Search</a>
</form>
</body>
</html>

Original comment by new...@gmail.com on 21 Sep 2007 at 8:53

GoogleCodeExporter commented 8 years ago
I found the bug and fixed it.
You can now download from the front page.

Original comment by tzury...@gmail.com on 22 Sep 2007 at 4:31

GoogleCodeExporter commented 8 years ago
Ok, fixed.

Nice work.

Original comment by new...@gmail.com on 22 Sep 2007 at 9:43