Thanks Mike, this is a solution I came up with:
<cfset temp = get_objectname.objectname>
<cfloop index="asc_val" from="32" to ="47">
<cfset temp_asc = #Chr(asc_val)#>
<cfset temp= #replace(temp,#temp_asc#,'',"all")#>
</cfloop>
<cfloop index="asc_val" from="58" to ="63">
<cfset temp_asc = #Chr(asc_val)#>
<cfset temp = #replace(temp,#temp_asc#,'',"all")#>
</cfloop>
<cfloop index="asc_val" from="91" to ="96">
<cfset temp_asc = #Chr(asc_val)#>
<cfset temp = #replace(temp,#temp_asc#,'',"all")#>
</cfloop>
<cfloop index="asc_val" from="123" to ="127">
<cfset temp_asc = #Chr(asc_val)#>
<cfset temp = #replace(temp,#temp_asc#,'',"all")#>
</cfloop>
<cfif isDefined('#temp#')>
This code will loop through all the ascii values that will cause the Error
Message to trip and remove them from the variable name. I am currently
working on a Javascript function that will not allow those offending
characters to be entered in the first place.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists