iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-15-2004, 11:58 AM
WebProWorld New Member
 
Join Date: Sep 2004
Location: Slovenia
Posts: 1
Gino-P RepRank 0
Default Caps Lock Alarm in a form

A hello from a newcomer. Let me try this! :)

I wonder if anybody knows if it is possible to let a user (of a forum for example) know that he has Caps Lock turned on when he is typing a username and password into a login form? Did anybody meet whit a thing like that on any website? Or does anybody have an idea what kind of server technology supports this if any (HTML, PHP, ASP,...)?
Reply With Quote
  #2 (permalink)  
Old 09-15-2004, 08:23 PM
WebProWorld Pro
 
Join Date: May 2004
Location: United Kingdom
Posts: 151
php~pro RepRank 0
Default

Easily possible with a client side language like JavaScript.
Reply With Quote
  #3 (permalink)  
Old 09-22-2004, 09:12 PM
WebProWorld Member
 
Join Date: Sep 2004
Location: Idaho
Posts: 40
MHenscheid RepRank 0
Default

If you want the alert to occur while the user is typing (or at least before they move on to the next page) use a client side script (i.e. Javascript). If you want to alert them after processing the page, any server side script will do.

Either way, you could check each character individually and compare it to its ascii code. If the code falls within a certain range you know that it is a capital letter. (I don't know what the range of capital letters is off the top of my head)

You could also use a statement such as:
if ucase(password)=password then
'This password is all uppercase
end if

ucase is the vbscript command for converting a string to all upper case.

IMO you should do this after the user submits info AND the information doesn't match. That way if a user really does have an all uppercase password, he/she isn't bothered everytime they try to enter their password.
Reply With Quote
  #4 (permalink)  
Old 09-23-2004, 05:03 AM
WebProWorld Pro
 
Join Date: May 2004
Location: United Kingdom
Posts: 151
php~pro RepRank 0
Default

There is an open source caps lock alarm available, and can be found with such a simple search term. Reason I didnt tell you before is that every one seems to post a boat load of queries in forums and dont even think to run a search for the answer. Fact is typing three words to a search engine would have produced an immediate result, rather than waiting for replies here. Why does nobody apply an effort?
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:20 PM.



Search Engine Optimization by vBSEO 3.3.0