We use the onChange event:     
onChange="javascript:this.value=this.value.toLowerCase();"

I believe this was the event suggested by Remedy and does not require any CSS 
style changes.

Fred

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Pierson, Shawn
Sent: Thursday, February 25, 2010 8:49 AM
To: [email protected]
Subject: Re: Forcing the Mid Tier to login using lowercase only

**
Originally I was using onKeyUp instead of onblur, but I thought it looked too 
weird (hence the css addition), and I thought it might be somehow better for 
performance to run only one Javascript function at the end rather than a 
continuous one.  However, you're probably right, and while the scenario you 
listed may not happen regularly, odds are that when it does happen, the person 
who runs into that situation will be a VIP of some sort.

Thanks,

Shawn Pierson

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Joe D'Souza
Sent: Thursday, February 25, 2010 8:00 AM
To: [email protected]
Subject: Re: Forcing the Mid Tier to login using lowercase only

**
This should work as the user would have to move away from the username object.

However you might want to check if the user enters the password first and then 
the username and decides to hit the enter key.. This actually is a practical 
scenario wherein after entering the username and password in a regular fashion 
if the user realizes he has mistyped the username, and then edits it but it 
still is in mixed case.. Onblur I think will not capture the Enter key event..

Joe
-----Original Message-----
From: Action Request System discussion list(ARSList) 
[mailto:[email protected]]on Behalf Of Pierson, Shawn
Sent: Wednesday, February 24, 2010 6:22 PM
To: [email protected]
Subject: Forcing the Mid Tier to login using lowercase only
**
Good afternoon,

I'm using ARS 7.1, and have had difficulties with users trying to log in with 
mixed case.  As a result, I decided to modify the Mid Tier's login.jsp file to 
only display lowercase, and to use javascript to convert the value to lowercase 
on the fly.  Does anyone have a better way of doing this?  Basically, what I 
did was to take the line that says:

<input name="<%=Params.USERNAME%>" maxlength="<%=Params.USERNAME_LENGTH%>" 
id="username-id" value="<%=com.remedy.arsys.share.HTMLWriter.escape(name)%>" 
class="loginfield" size="30" type="text">

and convert it to this:

<input name="<%=Params.USERNAME%>" maxlength="<%=Params.USERNAME_LENGTH%>" 
id="username-id" value="<%=com.remedy.arsys.share.HTMLWriter.escape(name)%>" 
class="loginfield" size="30" type="text" style="text-transform:lowercase;" 
onblur="javascript:this.value=this.value.toLowerCase();">

I'm not a Javascript king by any stretch of the imagination, but this does get 
the job done and doesn't require much work at all.  Does anyone see any problem 
with doing this?

Thanks,

Shawn Pierson
Remedy Developer | Southern Union


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

Reply via email to