HighDots Forums  

capitalize letters in field

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss capitalize letters in field in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Mick White
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 04:54 PM






The javascript protoocol is redundant:
onchange="this.value=this.value.toUpperCase();"

Of course, you'll never read this reply.
Mick

Zwi2000 wrote:

Quote:
Adding: onChange="javascript:this.value=this.value.toUpper Case();"

to the field did the trick.


A


"Zwi2000" <zwi2000 (AT) hotmail (DOT) com> wrote in message
news:cd6lgj$3fj$1 (AT) forums (DOT) macromedia.com...

Didnt work either, same issue, just changes the first letter of the word,
the result is "Manuel" instead of "MANUEL"

Z


"darrel" <notreal (AT) hotmail (DOT) com> wrote in message
news:cd6k8h$1vs$1 (AT) forums (DOT) macromedia.com...

When you are filling out a form, example:

First Name: ___________________

The user enters the name, I need to "On Blur" update whatever was

entered

in

lower caps to caps, so that instead of : manuel, the form field

displays

"MANUEL".

So database has nothing to do, its just reformating the information in

that

field.

The next question I'll ask you is why are you doing this?

Do do what you want, you'd do this on the client-side with javascript.
However, it's usually better to do this on the server side for a variety

of

reasons.

For javascript, this looks close to what you want:

http://javascript.internet.com/forms/sentence-caps.html

You'll want to edit it so that it caps everything. I believe the key is
this:

yourString.toUpperCase();

Again, though, you may want to consider a server-side solution.

-Darrel







Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.