I don't understand what the problem is. Is e.key().string not  
returning the correct values?

By the way, you don't need to iterate over the event object. It has a  
repr() method, so you can just do something like:

function print_event(e) {
     alert(e); // or use log(e), if possible
}

Beau

On 29-Nov-06, at 11:16 AM, Diez B. Roggisch wrote:

> Hi,
>
> me again - I ran into troubles when trying and getting onkeyup- 
> events working
> with IE6.
>
> What I do is this:
>
> --------------
> function print_event(event) {
>     s = '';
>     for(var p in event) {
>       s += p + "=" + event[p] + " ::::: ";
>     }
>     alert(s);
> };
>
> function test() {
>   var form = currentDocument().forms['testform'];
>   var f = form.elements['testfield'];
>   MochiKit.Signal.connect(f, 'onkeyup', print_event);
> };
>
> MochiKit.Signal.connect(window, 'onload', test);
> ------------------
>
> The form is simple and straightforward:
>
>
>       <form name="testform">
>       <input type="test" name="testfield"/>
>       </form>
>
> Now in FF, I get a nice event printed. In IE, things look entirely  
> different,
> I get the attached screenshot as a result.
>
> Any suggestions?
>
>
> Diez
>
>
> > <object_content_snapshot.png>


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to