imstillatwork
IS-IT--Management
I want to run this peice of code as cfscript:
<cfif IsDefined('attributes.paramlist')>
<cfloop index="i" list="#attributes.paramlist#">
<cfif IsDefined('attributes.#i#')>
<cfset paramlist = Insert(paramlist,"&#i#=#evaluate('URLEncodedFormat(attributes.#i#)')#",0)>
</cfif>
</cfloop>
</cfif>
Its the last peice in the templete that is NOT cfscript, and i want ti to be, cant figure it out though. especialy this part:<cfif IsDefined('attributes.#i#')>
Also, is there another more efficient way to do this? It is in a custom tag.
Thanks!
<cfif IsDefined('attributes.paramlist')>
<cfloop index="i" list="#attributes.paramlist#">
<cfif IsDefined('attributes.#i#')>
<cfset paramlist = Insert(paramlist,"&#i#=#evaluate('URLEncodedFormat(attributes.#i#)')#",0)>
</cfif>
</cfloop>
</cfif>
Its the last peice in the templete that is NOT cfscript, and i want ti to be, cant figure it out though. especialy this part:<cfif IsDefined('attributes.#i#')>
Also, is there another more efficient way to do this? It is in a custom tag.
Thanks!