Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

concatenation

Guest
Jul 21, 2009 Jul 21, 2009

Im trying to create a link, and I have a javascript function called table and Im trying to pass a string 'editgeo' and concat to a number (geographyid) but it doesnt pass the 'editgeo' only the number. Does anyone know how to concat that? thanks

<cfloop query="geo">
   <cfset querySetCell(geo, "edit", "<a href='javascript:table('editgeo='+#geographyid#)'>Edit</a>",currentrow)>
</cfloop>

740
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 21, 2009 Jul 21, 2009
LATEST

(hope this helps?)

Special characters

The double quotation marks ("), single quotation mark ('), and pound sign (#) characters have special meaning to ColdFusion. To include any of them in a string, double the character; for example, use ## to represent a single # character.

The need to escape the single- and double-quotation marks is context-sensitive. Inside a double-quoted string, you do not need to escape single-quote (apostrophe) characters. Inside a single-quoted string, you do not escape double-quote characters.

The following example illustrates escaping special characters, including the use of mixed single and double quotes.

<cfset mystring = "We all said ""For He's a jolly good fellow.""">
<cfset mystring2 = 'Then we said "For She''s a jolly good fellow".'>
<cfoutput>
  #mystring#<br>
  #mystring2#<br>
  Here is a pound sign: ##
</cfoutput>

The output looks like this:

We all said "For He's a jolly good fellow."
Then we said "For She's a jolly good fellow."
Here is a pound sign: #
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources