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 it will work, 'maybe' in
2001?">
<cfset newText = ''>

<cfloop index="thisWord" list="#test#" delimiters=" ">
  <cfset newWord = '#Ucase(Left(thisWord,1))#'>
    <cfif len(thisWord) GT 1>
      <cfset newWord =
'#newWord##Lcase(Right(thisWord,len(thisWord)-1))#'>
    </cfif>
  <cfset newText = listAppend(newText,newWord," ")>
</cfloop>

<cfoutput>#newText#</cfoutput>

----------------------------------------------------------------

This will however mess up 'McGower', but that may not be a problem for
you.

Dan.




This message is intended only for the use of the person(s) ("the intended 
recipient(s)") to whom it is addressed.

It may contain information which is privileged and confidential within the meaning of 
the applicable law. If you are not the intended recipient, please contact the sender 
as soon as possible.The views expressed in this communication may not necessarily be 
the views held by Live Information Systems Limited.


------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to