On 6/1/07, Aaron Scott <[EMAIL PROTECTED]> wrote:


> What's causing the hiccup? I'm guessing it's the fact that it's
> looking for a key down, and IE is still assuming the key is down when
> the function is called. I tried using keypress instead of keydown, but
> keypress doesn't seem to register the left and right arrow keys, which
> is exactly what I need (and keydown is catching them just fine).

I went back and tried it with keypress bound to something other than
left and right, and I'm still getting the endless alerts. I'm still at
a complete loss.


It's possible the alert loop is being caused by using the keyboard to close
the alert. Try the mouse instead (if you're not already doing that).

I'm not sure what you mean by 'kill the binding, and reload it, waiting for
the next hit'. You can bind to the keydown event once and then your function
handles every keydown. If you want to handle each keydown (check for arrow
keys, do something special in that case, otherwise do nothing), have the
binding. If you don't care about each keydown, unbind until you care again.
Maybe I don't understand exactly what you're trying to do, but it's not
obvious to me why you would want to unbind inside the handler and then
immediately call a function to re-bind.

- Richard

Reply via email to