IE caching / dhtml weird behavior

T

ted benedict

hello everybody, this is my goal:

- read out a text input and display it on the page somewhere else...
(easy..)

and the cache setting is like this:

- look for newer versions of stored pages "automatically". (in
tools/internet options/temporary internet files/settings)

so when i code this with onkeydown (need backspace too, like google
suggest), reading out the text input is _DELAYED_ one character. if the
cache setting is at "every access to the page" then this problem does
not occur.

is somebody able to explain this behavior?

my workaround is at the moment: assign onkeydown and onkeyup the same
event handler and it works... but that's not a proper solution :)

thanks in advance, all the best.
 
T

ted benedict

it suffices to have an onkeyup event handler attached to work around
the problem. this is a clean solution.

still, WHY in the setting of "automatically" (see above), the onkeydown
event handling will read out a one character delayed input text, and
the "every access to the page" will read out the correct input text?

i know onkeyup is more elegant as it works with both. but i can't
explain the difference just described....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top