You are either not logged in or not registered with our community. Click here to register.
 
December 11, 2016, 02:06:43 AM

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Click here if you are having problems.
Default Wide Screen Beige Lilac Rainbow Black & Blue October Send us your theme!

Hark!  The Herald!
Holiday Issue 2016

Wiki Blogs Dicebot

Author Topic: Automatic Input Focus  (Read 171 times)

0 Members and 1 Guest are viewing this topic.

Offline FourStellarTopic starter

Automatic Input Focus
« on: August 15, 2016, 06:46:43 PM »
Hello. I hope I'm in the right place to suggest a change to the Elliquiy website. I also develop websites as part of my day job, so I'm not only going to gripe but also suggest a solution. When I navigate to https://elliquiy.com/forums/index.php on a desktop computer, I have to hit tab 7 times to get to the user name text box or use the mouse to click in it. To automatically place focus on the user name entry box, it would be a simple matter of adding something like this bit of JavaScript:

Code: [Select]
document.getElementsByName("user").item(0).focus();
...to the startup script when no user is logged in, and users could immediately proceed with user name entry--no mouse or tabbing necessary.

I also know from my work that fulfilling requests can have unintended, negative side effects and sometimes they just don't fit the overall design, so I understand if you can't or don't want to. But I thought I would mention it nevertheless.

Thanks for your consideration!

Offline Vekseid

Re: Automatic Input Focus
« Reply #1 on: August 15, 2016, 11:52:09 PM »
Done, thank you.

If you want to help out with the overall development of the site, please consider helping out the Elkarte project, as that's what I am intending to upgrade Elliquiy to once it is ready for us.

Offline FourStellarTopic starter

Re: Automatic Input Focus
« Reply #2 on: August 16, 2016, 08:38:59 AM »
Thank you kindly!

I will check out ElkArte.

Offline mia h

Re: Automatic Input Focus
« Reply #3 on: August 16, 2016, 11:32:44 AM »
or if you're supporting HTML 5 (so any recent browser), then just add the autofocus attribute to the input box and save on the javascript

Offline Vekseid

Re: Automatic Input Focus
« Reply #4 on: August 16, 2016, 03:44:52 PM »
or if you're supporting HTML 5 (so any recent browser), then just add the autofocus attribute to the input box and save on the javascript

The current state of SMF has me beyond caring. >_>

I've been more keen on reigning this in on my Elkarte PRs, but it's still a nasty mess.