The timeout might not be a bad idea to try...
Some other thoughts...
When does the "q" appear in the text field? When you release the "q" key, or before that, as soon as the div and text field appear?
Have you tried the same thing using the onclick or onkeydown events to see if they have the same issue?
You could also try returning false in the onkeypress function you're using now to see if that cancels the original keyboard action. (E.g., onkeypress="showDiv(); return false;".)
Main Topics
Browse All Topics





by: ic3b3rgPosted on 2007-01-15 at 21:05:42ID: 18321759
This should work:
rue;}
function youronkeypressfunction(o){
if(your test for "q"){other stuff; if(!o)event.cancelBubble=t
}