[thelist] weird error

.jeff jeff at members.evolt.org
Thu Feb 7 14:01:00 CST 2002


mike,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Mike Stevens
>
> I'm getting a strange javascript error when I try to
> load a page.  The javascript is supposed to bring the
> focus to the first field of the login form.  For some
> reason, the first time I try to view the page it
> doesn't put the focus and gives me the following error:
>
> Line: 93
> Char: 4
> 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
> URL: http://www.businesstravelerusa.com/admin/loin.php
>
> If I refresh the page then it seems to work fine.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

you mean here:

http://www.businesstravelerusa.com/admin/login.php

refreshing doesn't fix it for me.  the problem is that you're passing
indexes to the function and the index for the element refers to your hidden
input for the session id.  either change the index or pass the name of the
username field.

also, read carefully what james had to say on the topic.  he covered the
points of the error you're receiving very well.

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/





More information about the thelist mailing list