I'm looking for a udf to capitalize uppercase text. There seem to be a few
that does the same as a CSS text-transform, but I can't find one for text
which is all in upper case.
Jenny
~|
Order the Adobe Coldfusion Anthology
Isn't uppercase text already capitalized?
On Sat, Jul 2, 2011 at 7:39 AM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
I'm looking for a udf to capitalize uppercase text. There seem to be a few
that does the same as a CSS text-transform, but I can't find one for text
which is all
I'm looking for a udf to capitalize uppercase text.
What do you actually mean by Capitalize?
- Having only the first character upper case in a word;
- Having the whole word in small capitals;
~|
Order the Adobe Coldfusion
Capitalized is a leading cap, like: This Is Capitalized.
-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com]
Sent: 02 July 2011 13:49
To: cf-talk
Subject: Re: Capitalize
Isn't uppercase text already capitalized?
On Sat, Jul 2, 2011 at 7:39 AM, Jenny Gavin-Wear
jenn
: Capitalize
I'm looking for a udf to capitalize uppercase text.
What do you actually mean by Capitalize?
- Having only the first character upper case in a word;
- Having the whole word in small capitals;
~|
Order the Adobe
...@gmail.com]
Sent: 02 July 2011 13:49
To: cf-talk
Subject: Re: Capitalize
Isn't uppercase text already capitalized?
On Sat, Jul 2, 2011 at 7:39 AM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
I'm looking for a udf to capitalize uppercase text. There seem
to be a few
that does the same
:
Capitalized is a leading cap, like: This Is Capitalized.
-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com]
Sent: 02 July 2011 13:49
To: cf-talk
Subject: Re: Capitalize
Isn't uppercase text already capitalized?
On Sat, Jul 2, 2011 at 7:39 AM, Jenny Gavin-Wear
Actually, that is title case.
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk]
Sent: Saturday, July 02, 2011 9:09 AM
To: cf-talk
Subject: RE: Capitalize
Capitalized
Hi Ray,
Thanks for your reply...
Silly of me, I didn't think to lcase() the string first.
Jenny
-Original Message-
From: Raymond Camden [mailto:raymondcam...@gmail.com]
Sent: 02 July 2011 14:11
To: cf-talk
Subject: Re: Capitalize
Did you check CFLIb? I think there are about 200
: Capitalize
Actually, that is title case.
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk]
Sent: Saturday, July 02, 2011 9:09 AM
To: cf-talk
Subject: RE: Capitalize
-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Saturday, July 02, 2011 11:22 AM
To: cf-talk
Subject: RE: Capitalize
cfset str = rereplace(lcase(str), '([a-z]+)', '\u\1\2', all) /
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original
Do lcase() on the text in CF, then use text-transform:capitalize in css.
- Sent from my Droid
On Jul 2, 2011 7:40 AM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk
wrote:
I'm looking for a udf to capitalize uppercase text. There seem to be a few
that does the same as a CSS text-transform
thanks for the replies, everyone :)
Bobby, nice regex ... I really need to learn it ... thank you.
-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com]
Sent: 02 July 2011 16:37
To: cf-talk
Subject: Re: Capitalize
Do lcase() on the text in CF, then use text
, 2002 2:31 PM
To: CF-Talk
Subject: capitalize first letter
Hi everyone. I would like to capitalize the first letter of variable every
time it is displayed. What is the easiest way to do this? Thanks very much.
__
Structure your
: Wurst, Keith D. [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 12:31 PM
Subject: capitalize first letter
Hi everyone. I would like to capitalize the first letter of variable every
time it is displayed. What is the easiest way to do this? Thanks very
much
Someone made a tag called CF_ProperCase that should be what you are
looking for:
http://tinyclick.com/?08q2jd
HTH,
Jim Vosika
-Original Message-
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 2:31 PM
To: CF-Talk
Subject: capitalize first letter
Hi
Hi everyone. I would like to capitalize the first letter of variable every
time it is displayed. What is the easiest way to do this? Thanks very
much.
The first letter of the contents of a variable, or the first letter of each word
within the contents of a variable? ... I usually wind up
At 03:31 PM 7/17/02 -0400, Wurst, Keith D. wrote:
Hi everyone. I would like to capitalize the first letter of variable every
time it is displayed. What is the easiest way to do this? Thanks very much.
http://www.teratech.com/coldcuts/cutdetail.cfm?cutid=109
T
Someone made a tag called CF_ProperCase that should be what you are
looking for:
http://tinyclick.com/?08q2jd
HTH,
Jim Vosika
-Original Message-
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 2:31 PM
To: CF-Talk
Subject: capitalize first letter
Hi
there is a UDF on cflib that does this nicely.
matt
-Original Message-
From: Jim Vosika [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 3:51 PM
To: CF-Talk
Subject: RE: capitalize first letter
Someone made a tag called CF_ProperCase that should be what you are
looking
])
* @version 2, July 27, 2001
*/
function capFirstTitle(initText){
var Words = ;
var j = 1; var m = 1;
var doCap = ;
var thisWord = ;
var excludeWords = ArrayNew(1);
var outputString = ;
initText = LCASE(initText);
//Words to never capitalize
excludeWords[1] = an;
excludeWords[2
PROTECTED]]
Sent: Wednesday, July 17, 2002 4:48 PM
To: CF-Talk
Subject: Re: capitalize first letter
Here is the capFirstTitle UDF. Just copy and paste it.
CFSCRIPT
/**
* Returns a string with words capitalized for a title.
* Modified by Ray Camden to include var statements.
*
* @param
Hi all, I'm just starting to learn coldfusion and I'm looking for a function
or a way to capitalize the first character of words in a string. Can this
be done? Can someone help me with this?
Thanks
~~
Structure your ColdFusion code
there are custom tags on allaire's website that can do this go check out the
developers section.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 1:21 PM
To: CF-Talk
Subject: Capitalize first characters
Hi all, I'm just starting
, September 13, 2001 10:21 AM
To: CF-Talk
Subject: Capitalize first characters
Hi all, I'm just starting to learn coldfusion and I'm looking for a function
or a way to capitalize the first character of words in a string. Can this
be done? Can someone help me with this?
Thanks
cfset newname = #Ucase(left(old_name,1))#
#mid(old_name,2,len(old_name)-1)#
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 1:21 PM
To: CF-Talk
Subject: Capitalize first characters
Hi all, I'm just starting to learn coldfusion
#UCase(Left(word, 1))##Right(word, Len(word) - 1)# - this will capitalize
the first letter and leave the rest the same. Add an LCase() around the
second CF Variable to lower case those letters.
Alex Santantonio
Lead Developer
Macromedia Coldfusion 5 Certified Professional
Macromedia Certified
To: CF-Talk
Subject: Capitalize first characters
Hi all, I'm just starting to learn coldfusion and I'm looking for a function
or a way to capitalize the first character of words in a string. Can this
be done? Can someone help me with this?
Thanks
You can easily do this using a style tag:
style
.cap{
text-transform : capitalize;
}
/style
and then use span class=capblah blah/span
Don Vawter
www.cyberroomies.com
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday
-Talk
Subject: RE: Capitalize first characters
There's an example in an article that discusses User Defined Functions that
does just what you want. You can find the article at
http://www.sys-con.com/coldfusion/articleprint.cfm?id=270. HTH.
d
-Original Message-
From: [EMAIL PROTECTED
Thanks all.
I got it.
:)
-Original Message-
From: Adkins, Randy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 11:21 AM
To: CF-Talk
Subject: RE: Capitalize first characters
cfset newname = #Ucase(left(old_name,1))#
#mid(old_name,2,len(old_name)-1)#
-Original
lk
Subject: RE: Capitalize First Letter of Each Word
Steve,
This code dies if single letter words are present in the string eg "i".
Parameter 2 of function Right which is now "0" must be a positive integer,
as CF so succinctly puts it.
Added this:
cfset newword="&qu
Subject: RE: Capitalize First Letter of Each Word
Personally I think this should turn into a "Who can come up with the
longest, most convoluted, but beautifully artistic way to Capitalize
the First Letter of Each Word" competition.
Here's my attempt, I'm sure there are much longe
Neither does mine! And please note I commented it, so it looks long but is
actually only a few lines!
Paul
-Original Message-
From: Jeff Bevill [mailto:[EMAIL PROTECTED]]
Sent: 27 October 2000 09:32
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
Rich,
My "
.
---
-Original Message-
From: John McKown [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 2:41 PM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
Ok, I think we have a winner.
James Lawrence from Freeserve
PROTECTED]]
Sent: Friday, October 27, 2000 9:38 AM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
Ok, I think we have a winner.
James Lawrence from Freeserve ([EMAIL PROTECTED]) submitted a little
JavaScript that does the job well on the client side. This was the
Its only
Can someone share a script that will capitalize the
first letter of every word entered into a form field?
John McKown, VP Business Services
Delaware.Net, Inc.
30 Old Rudnick Lane, Suite 200 Dover, DE 19901
email: [EMAIL PROTECTED]
phone: 302-736-5515
fax: 302-736-5945
icq: 1495432
uot;John McKown" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 8:35 AM
Subject: Capitalize First Letter of Each Word
Can someone share a script that will capitalize the
first letter of every word entered into a form field?
John McKown, VP Business Serv
Duh - Brain Fart - sorry - I DIDN'T read your whole question. This will do
only a couple of words effeciently.
Dave (egg on face)
- Original Message -
From: "Dave Hannum" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 8:47 AM
Sub
There's a very powerful custom tag in the gallery, that will capitalize any
string and is very customizable. I think the author is Nat Weisse. I used it
to properly capitalize news headlines.
- Original Message -
From: "John McKown" [EMAIL PROTECTED]
To: "CF-Talk" [E
[EMAIL PROTECTED]
Web Developer, Freeserve.com Plc
The Observatory, 36-41 Clerkenwell Close, Finsbury, London. EC1R OAU
Telephone: 02075534832 Mobile: 07971024911
-Original Message-
From: John McKown [mailto:[EMAIL PROTECTED]]
Sent: 26 October 2000 13:35
To: CF-Talk
Subject: Capitalize Firs
8:54 AM
To: CF-Talk
Subject: Re: Capitalize First Letter of Each Word
Duh - Brain Fart - sorry - I DIDN'T read your whole question.
This will do
only a couple of words effeciently.
Dave (egg on face)
- Original Message -
From: "Dave Hannum" [EMAIL PROTECTED]
To
PROTECTED]]
Sent: Thursday, October 26, 2000 8:54 AM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
John,
Here's a javascript version ( haven't tested it properly, but it should be
ok )
SCRIPT LANGUAGE="JAVASCRIPT"
!--
function capitalizeMe(obj) {
val =
You could always lowercase the whole string by changing the first line to :
val = obj.value.toLowerCase();
-Original Message-
From: John McKown [mailto:[EMAIL PROTECTED]]
Sent: 26 October 2000 14:08
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
This JavaScript DOES
L PROTECTED]]
Sent: Thursday, October 26, 2000 9:08 AM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
This JavaScript DOES work, in the sense that it capitalizes the
first letter of each word, but it does not prevent kids from
entering stuff like this: "UnBeLiEvAbLe".
John
This would be the ColdFusion way of doing it, if you want to convert
it on server time rather than client, turning it into a tag should be
no problem.
Were you asking for JavaScript or CF?
cfset test = "here is a test I wonder if
00 7:35 AM
To: CF-Talk
Subject: Capitalize First Letter of Each Word
Can someone share a script that will capitalize the
first letter of every word entered into a form field?
John McKown, VP Business Services
Delaware.Net, Inc.
30 Old Rudnick Lane, Suite 200 Dover, DE 19901
email: [EMAIL PROTECTED
-
From: Jeff Bevill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 14:50
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
John McKown,
Here ya go man. I only had about 10 mins to write this, hope it works. :)
!--- l33t w3rd fixer v1.0 ---
!--- Jeff Be
PROTECTED]
Subject: RE: Capitalize First Letter of Each Word
John McKown,
Here ya go man. I only had about 10 mins to write this, hope it works. :)
!--- l33t w3rd fixer v1.0 ---
!--- Jeff Bevill - [EMAIL PROTECTED] ---
cfset Variable="UnBeLiEvAbLe"
cfif isDefined("Variable") an
to do it for multiple fields let me know. I can build that loop for
you as well.
--K
-Original Message-
From: Jeff Bevill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 6:50 AM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
John McKown,
Here ya go man. I on
PROTECTED]]
Sent: Thursday, October 26, 2000 9:17 AM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
You could always lowercase the whole string by changing the first
line to :
val = obj.value.toLowerCase();
-Original Message-
From: John McKown [mailto:[EMAIL
-Original Message-
From: Jeff Bevill [mailto:[EMAIL PROTECTED]]
Sent: 26 October 2000 14:50
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
John McKown,
Here ya go man. I only had about 10 mins to write this, hope it works. :)
!--- l33t w3rd fixer v1.0 ---
!--- Jeff
Ticonderoga
-Original Message-
From: John McKown [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 10:11 AM
To: CF-Talk
Subject: RE: Capitalize First Letter of Each Word
ok, cool. Thanks.
John McKown, VP Business Services
Delaware.Net, Inc.
30 Old Rudnick Lane, Suite 200 Dover, DE
53 matches
Mail list logo