Afternoon guys,
Having some trouble with some code...
Event.observe('contents','keypress',function(event) {
alert('Key got pressed ' + event);
// alert(event);
});
.. doesnt work (yes the element exists)
Yet ,.....
Event.observe('contents','click',function(event) {
alert('Key got pressed ' + event);
// alert(event);
});
.. Does work....
Do i have to watch the whole document for a keypress or can i juts
watch an element ?
Very strange behaviour... and the weirdest thing is .. it works in
Internet explorer and not Firefox (latest update 3.010 w/e was updated
last week)
Anyone have any insight
Help appreciated
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---