Login form - iOS keyboard hinting

"Nick Sayer" <[email protected]> Mon, 30 Jan 2012 22:46:33 -0800
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
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 @ 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: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel