Nick Sayer | 31 Jan 2012 07:46
Gravatar

Login form - iOS keyboard hinting

It's a little thing. But every big thing is made of a lot of little
things, after all.

I've patched my 1.4.22 installation so that the login form Name: field is
of type 'email' instead of 'text.' The purpose for doing so is so that iOS
keyboards will have the e-mail nature - they'll show you the  <at>  symbol on
the alpha page and not default to initial-caps.

I don't know if I could do this as a plugin. It required modifying
functions/form.php's addInput() method. I added another defaulted argument
- $type = 'text'. I changed the instance of 'text' in the call to
addInputField with $type. Next, in src/login.php I added ,'email' to the
parameter list for that field. Lastly, the javascript block needed to have
|| document.login_form.elements[i].type == \"email\" added to the existing
|| clause.

There are likely other places where the 'email' hint could be added. The
compose window is an obvious next step. I don't do a lot of composing in
my squirrelmail installation, but still...

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel <at> lists.sourceforge.net
(Continue reading)

Alexandros Vellis | 31 Jan 2012 10:06
Picon

Re: Login form - iOS keyboard hinting

On Mon, 30 Jan 2012 22:46:33 -0800
"Nick Sayer" <nsayer <at> kfu.com> wrote:

> I've patched my 1.4.22 installation so that the login form Name:
> field is of type 'email' instead of 'text.' The purpose for doing so
> is so that iOS keyboards will have the e-mail nature - they'll show
> you the  <at>  symbol on the alpha page and not default to initial-caps.
> 
> I don't know if I could do this as a plugin.

I'd vote that this is such a simple and useful patch / enhancement,
that we could just add it in core. That is, if it doesn't break
anything because of the HTML4 DTD we're using.

The keyboard would work nicely for all smartphones and tablets - iOS,
Android etc.

Alexandros

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
(Continue reading)

Tomas Kuliavas | 31 Jan 2012 20:27
Picon
Gravatar

Re: Login form - iOS keyboard hinting


Alexandros Vellis wrote:
> 
> That is, if it doesn't break anything because of the HTML4 DTD we're
> using.
> 
Check the specs again.

http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT

Somebody confused HTML4 specs with HTML5 specifications.
--

-- 
View this message in context: http://old.nabble.com/Login-form---iOS-keyboard-hinting-tp33234255p33238673.html
Sent from the squirrelmail-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel <at> lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel


Gmane