PDA

View Full Version : Login page is strange


Pilot
Tue 17th Jul '01, 10:44am
I require my users to login to view the board.

They have complained that when the login page appears - the cursor is not positioned ready on the Username field.

Also "unregistered" appears - rather confusingly and has to be erased each time (this is pointless).

Can this be improved please?

Perhaps someone will tell me how to do it in templates?

Wayne Luke
Tue 17th Jul '01, 11:56am
You would have to edit the "error_nopermission_loggedout" template.

To get the username field selected by default you will have to add Javascript to the page that sets the focus to that field. No browser on the market today will select the first field of a form automatically. At most they will select the first like and let you tab through the links and form fields in the order they appear in the file.

To get rid of the word "Unregistered" simply erase it from the value attribute of the input tag.

Pilot
Tue 17th Jul '01, 1:54pm
OK.

Why doesn't VB use JS to set the focus then?

After all most browsers support it and if they don't you are no worse off than before.