Javascript error in IE7

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
comperio
TestLink user
Posts: 3
Joined: Thu Jun 19, 2008 2:38 pm
Location: Oregon Coast

Javascript error in IE7

Post by comperio »

I know IE 7 isn't "officially" supported, but I thought perhaps someone here might have some suggestions of what to look for:

When I get the login page, I notice a javascript error displayed as an icon in the status bar. When I double-click the error icon, this is what I see:
line: 57
char: 2
Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus
Code: 0
When I view the source, line 57 is part of an if statement that looks like this:

Code: Select all

if (document.forms[0])
	document.forms[0].elements[0].focus();
Firefox does not give the error. (Maybe because it's Firefox, or maybe because there is a setting in Firefox that is suppressing the error.)

It doesn't seem to cause any harm. I'm just curious as to why this is happening. (I'm not much of a javascript guru).
Locked