I don't know whether this help...in the keydown event capture how many
record has move. but do not display anything until keyup event occurs. or if
they hold the keydonw, then you might wish to display mulitple of 5 records
or acts as page down event...this will give the system time to display
record correctly...this is my ideas...there might be better answer.
----- Original Message -----
From: melody
To: "javascript" <javascript@p...>
Sent: Friday, July 14, 2000 10:33 PM
Subject: [javascript] async error with dynamic drop down boxes
> Hello to all!
>
> I have an application which uses RDS to dynamically fill drop down boxes.
I
> use an on change method to fill the boxes. For example, if a user selects
a
> make for a vehicle, then dynamically the available years are filled in
> another drop-down box. This is now working correctly. The problem is that
> if the user uses the up and down keys too quickly, the years cannot change
> fast enough. I eliminated part of this problem by using keypressed and
> key-up methods. This fixed the problem of people holding down the up or
> down arrow to "scroll" thru the list because if the key is pressed, I do
> not reload the years until the key is released (key-up). There is still a
> problem if the user quickly presses & releases the down or up arrow
> repeatedly. I get an error that says: "can't perform operation with an
> async operation pending." I tried to use onblur - but that caused more
> problems (ex: empty box, text did not fit- box too narrow, not ready when
> the user is looking for years, etc.) Does anyone have any ideas?
> Also is there someway to capture when the "enter" key is pressed? or
> the alt key? If the user does a shift + tab to go back a field I also am
> getting this async error.
>
> Thanks in advance!
> Wrox Rules!
> Melody