Page 1 of 1

innerHTML or visibility: hidden problem with IE only

Posted: Thu Jun 30, 2005 8:17 pm
by MicahCarrick
I'm working on a site which displays one of two error messages when text changes in one of two text boxes (using onKeyDown). I've tried 2 methods to achive this:

1. A function to show the error message by showing a DIV using the style.visibility='visible' and visibility='hidden' (also tried display: none and display: block)

2. A function which uses just one DIV tag and changes the innerHTML property from an empty string to the error message.

The DIV tag is inside a TD element. It works fine in firefox, safari, netscape but in IE it does this strange lag and/or only shows up when I move the mouse cursor over where the DIV tag is. This is true for both of the methods I've tried.

Is there some type of refresh property to ensure that the DIV shows up when the function executes and not when the cursor moves over it? Any ideas?

Thanks,

Micah Carrick

Posted: Fri Jul 01, 2005 7:24 am
by n00b Saibot
Do you have a working demo somewhere so that I can see it out :?: Problem seems to be a minor flaw somewhere...