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
  #1  
Old   
Zwi2000
 
Posts: n/a

Default capitalize letters in field - 07-15-2004 , 02:10 PM






Hi,

I downloaded an extension to capitalize a word, the problem is it only
changes the first letter and I need to change the whole word. Is there a fix
for this or a script maybe ?

Thanks for the help in advance,

Z



Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 02:18 PM






Quote:
I downloaded an extension to capitalize a word, the problem is it only
changes the first letter and I need to change the whole word. Is there a
fix
for this or a script maybe ?
Umm...what extension are you talking about?

If it's just one word, do you really need an extension to do this?

-Darrel




Reply With Quote
  #3  
Old   
Zwi2000
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 02:22 PM



Whatever does the trick. I downloaded "capitalize word" from
http://www.basic-ultradev.com/

Maybe a script ?

A


"darrel" <notreal (AT) hotmail (DOT) com> wrote

Quote:
I downloaded an extension to capitalize a word, the problem is it only
changes the first letter and I need to change the whole word. Is there a
fix
for this or a script maybe ?

Umm...what extension are you talking about?

If it's just one word, do you really need an extension to do this?

-Darrel





Reply With Quote
  #4  
Old   
darrel
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 02:29 PM



Quote:
Maybe a script ?
What, exactly, are you trying to do? What word(s) are you trying to
capitalize? Is this in DW? Or is this on the server? We need more info
here...

-Darrel




Reply With Quote
  #5  
Old   
Zwi2000
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 02:42 PM



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.

Z



"darrel" <notreal (AT) hotmail (DOT) com> wrote

Quote:
Maybe a script ?

What, exactly, are you trying to do? What word(s) are you trying to
capitalize? Is this in DW? Or is this on the server? We need more info
here...

-Darrel





Reply With Quote
  #6  
Old   
darrel
 
Posts: n/a

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



Quote:
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
  #7  
Old   
Zwi2000
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 03:21 PM



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

Quote:
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
  #8  
Old   
Zwi2000
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 03:26 PM



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

to the field did the trick.


A


"Zwi2000" <zwi2000 (AT) hotmail (DOT) com> wrote

Quote:
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
  #9  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: capitalize letters in field - 07-15-2004 , 03:26 PM



On Thu 15 Jul 2004 03:21:59p, Zwi2000 wrote in macromedia.dreamweaver:

Quote:
Didnt work either, same issue, just changes the first letter of the word,
the result is "Manuel" instead of "MANUEL"
<input name="field1" type="text" id="field1"
onblur="javascript:document.form1.field1.value=doc ument.form1.field1.value.toUpperCase();"/>

Watch the wrap!


Reply With Quote
  #10  
Old   
Mick White
 
Posts: n/a

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



<input type="text" onblur="this.value=this.value.toUpperCase()">

Mick

Zwi2000 wrote:

Quote:
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.

Z



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

Maybe a script ?

What, exactly, are you trying to do? What word(s) are you trying to
capitalize? Is this in DW? Or is this on the server? We need more info
here...

-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.