innerHTML or visibility: hidden problem with IE only

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
MicahCarrick
Forum Newbie
Posts: 23
Joined: Sat Apr 09, 2005 5:40 pm

innerHTML or visibility: hidden problem with IE only

Post 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
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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...
Post Reply