|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Adding a space to an output text string
Hi all,
I'm using a CF variable to populate a 'name' attribute in an HTML link. The CF variable contains a space but the HTML link 'name' attribute does not allow spaces. Is there a function that would allow me to add an underscore after a certain amount of characters in the output text string? Curently the wrong format: <a href="/" name="Olde Towne" title"Go to this location."> The correct output format using a CF function: <a href="/" name="Olde_Towne" title"Go to this location."> What function can I use to do this? Thanks! Nathan |
|
#2
|
|||
|
|||
|
Either replace() or REReplace() should do it.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Adding a space to an output text string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|