![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 ? |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
Maybe a script ? |
#5
| |||
| |||
|
|
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 |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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 |
#8
| |||
| |||
|
|
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 |
#9
| |||
| |||
|
|
Didnt work either, same issue, just changes the first letter of the word, the result is "Manuel" instead of "MANUEL" |
#10
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |