Posts: 66
Threads: 6
Joined: Feb 2011
2011-04-02, 02:17:42
(This post was last modified: 2011-04-02, 03:36:11 by Chuck Brown.)
Why is line 210 in jquery.getsimple.js commented out? (GetSimple 3.0)
Code:
//$("input[type='text']:first", document.forms[0]).focus();
This is nice functionality, especially on the login page.
EDIT: to be clear, I'd like to have this back if possible. I know I can un-comment it myself, but there's probably a good reason why this is disabled.
Posts: 2,094
Threads: 54
Joined: Jan 2011
leenm Wrote:Why is line 210 in jquery.getsimple.js commented out? (GetSimple 3.0)
Code:
//$("input[type='text']:first", document.forms[0]).focus();
This is nice functionality, especially on the login page.
EDIT: to be clear, I'd like to have this back if possible. I know I can un-comment it myself, but there's probably a good reason why this is disabled.
I suppose if it is enabled a plugin won't be able to set the focus to a specific element itself, which might be a select box or a check box. At least it would be browser dependent which focus() won, the plugin's or that of the jquery.getsimple.js.
I think that each page should set the focus to the best element - and for the login page this would be the user name field, ...
Posts: 1,848
Threads: 86
Joined: Aug 2009
i liked this idea. I am adding a few auto-focus inputs for these pages:
index.php (login)
resetpassword.php
edit.php (create new page only)
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!