Javascript - Proper Case Fixes

Tuesday, September 11, 2012

So I have a basic ASP web form where users can type in their information which gets sent to a SQL database. We had an issue where users would type in the fields in all caps, so I set up a JavaScript to fix those entries so that the first letter would be capitalized and the rest would be lowercase. Now we have the issue with people who have Irish/Scottish names (such as MacDonald, McCoy, VanDyke, etc.) as well as those who have apostrophe or dashes in their names (such as O'Brian or O'Hara-Brown).

Does anybody have some script that would catch those and set them to the proper case before being sent to the database as well as catch those that typed in all caps and fix that as well?

--
 
 

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Copyright © 2010 Web Design | Free Blogger Templates by Splashy Templates | Layout by Atomic Website Templates

Vida de bombeiro Recipes Informatica Humor Jokes Mensagens Curiosity Saude Video Games Animals Diario das Mensagens Eletronica Rei Jesus News Noticias da TV Artesanato Esportes Noticias Atuais Games Pets Career Religion Recreation Business Education Autos Academics Style Television Programming Motosport Humor News The Games Home Downs World News Internet Design Entertaimment Celebrities 1001 Games Doctor Pets Net Downs World Enter Jesus Mensagensr Android Rub Letras Dialogue cosmetics Genexus lasofia thebushrajr wingshock tripedes gorduravegetal dainfamia dejavu-transpersonal jsbenfica republicadasbadanas ruiherbon iranianforaryans eaystcheyl fotosdanadir Só Humor Curiosity Gifs Medical Female American Health Madeira Designer PPS Divertidas Estate Travel Estate Writing Computer Matilde Ocultos Matilde futebolcomnoticias girassol lettheworldturn topdigitalnet Bem amado enjohnny produceideas foodasticos cronicasdoimaginario downloadsdegraca compactandoletras newcuriosidades blogdoarmario arrozinhoii