| | |
|
|
|
capitalize letters in field |
| message from Zwi2000 on 15 Jul 2004 |
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
|
| darrel replied to Zwi2000 on 15 Jul 2004 |
Umm...what extension are you talking about?
If it's just one word, do you really need an extension to do this?
-Darrel
|
| Zwi2000 replied to darrel on 15 Jul 2004 |
Whatever does the trick. I downloaded "capitalize word" from
http://www.basic-ultradev.com/
Maybe a script ?
A
"darrel" <notreal@hotmail.com> wrote in message
news:cd6hkf$s23$1@forums.macromedia.com...
|
| darrel replied to Zwi2000 on 15 Jul 2004 |
What, exactly, are you trying to do? What word(s) are you trying to
-Darrel
|
| Zwi2000 replied to darrel on 15 Jul 2004 |
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@hotmail.com> wrote in message
news:cd6i94$sov$1@forums.macromedia.com...
|
| darrel replied to Zwi2000 on 15 Jul 2004 |
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
|
| Zwi2000 replied to darrel on 15 Jul 2004 |
Didnt work either, same issue, just changes the first letter of the word,
the result is "Manuel" instead of "MANUEL"
Z
"darrel" <notreal@hotmail.com> wrote in message
news:cd6k8h$1vs$1@forums.macromedia.com...
|
| Joe Makowiec replied to Zwi2000 on 15 Jul 2004 |
<input name="field1" type="text" id="field1"
onblur="javascript:document.form1.field1.value=document.form1.field1.value.toUpperCase();"/>
Watch the wrap!
|
| Zwi2000 replied to Zwi2000 on 15 Jul 2004 |
Adding: onChange="javascript:this.value=this.value.toUpperCase();"
to the field did the trick.
A
"Zwi2000" <zwi2000@hotmail.com> wrote in message
news:cd6lgj$3fj$1@forums.macromedia.com...
|
| Mick White replied to Zwi2000 on 15 Jul 2004 |
onchange="this.value=this.value.toUpperCase();"
Of course, you'll never read this reply.
Mick
Zwi2000 wrote:
|
|
Archived message: capitalize letters in field (Macromedia Dreamweaver Web Design)