Dave (and all), I tried it passing through the URL, and though it wrote it to the html CFMX still did not parse the code. Instead I decided to pass it like so:
<cfparam name="variables.hpimage" default="Dr_Andes_final.jpg,204,238,Dr. Jon M. Andes and friends,yes"> <cfset variables.hpimagelist = ListToArray(variables.hpimage)> Then in my call of the tag I used this: <ui:hpimage image="#variables.hpimagelist[1]#" width="#variables.hpimagelist[2]#" height="#variables.hpimagelist[3]#" text="#variables.hpimagelist[4]#" caption="#variables.hpimagelist[5]#"> This worked beautifully to call the tag properly and parse it out. So, in the future if I pass the variable from another page like so: <cfset variables.hpimage = "myimage.jpg,150,300,My message text,yes"> It will dynamically recall the tag correctly. Thank you all for your assistance. Cutter ************* Dave Watts wrote: >>>For rather odd reasons I am attempting to pass a parameter >>>that looks a little like this: >>> >>><cfparam name="variables.hpimage" default="<ui:hpimage >>>image='Dr_Andes_final.jpg' width='204' hieght='238' >>>alt='Dr. Jon M. Andes and friends' caption='yes'>"> >>> >>>and call it like: >>> >>><cfoutput>#variables.hpimage#</cfoutput> >>> >>>Which gives me...nothing? When I try to call it: >>> >>><cfoutput>#evaluate(variables.hpimage)#</cfoutput> >>> >>>I get the error: >>> >>>The CFML compiler was processing: >>> >>>< marks the beginning of a ColdFusion tag.Did you mean >>>LT or LTE? >>> >>>Is there a way to do this? I know it seems rather odd to >>>pass a tag as a >>> >>>parameter but.... >>> >>> >>It's not the browser that interprets that parameter string, >>but rather the CFMX server. This bit of syntax... >> >><ui:hpimage >>image='Dr_Andes_final.jpg' width='204' hieght='238' >>alt='Dr. Jon M. Andes and friends' caption='yes'> >> >>..on it's own calls a custom tag (hpimage.cfm) that writes >>some rather extensive code to the page. I was trying to >>find a way to pass it as one parameter to a page instead >>of as five parameters (without a db call). >> >> > >In general, you can't use a tag as an attribute value for another tag. You >could get where you're trying to go like this, I suppose: > ><cfsavecontent variable="myimage"> > <ui:hpimage ...> ></cfsavecontent> > ><cfparam name="Variables.hpimage" default="#Variables.myimage#"> > >Of course, this would run the custom tag ui:hpimage whether you needed to >use it or not. You might want to look for an alternative approach. Is this >custom tag written in CFMX, or is it a JSP custom tag? If it's written in >CFMX, you might find the component model to be more suitable for what you're >trying to do (or you may not, actually). > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ >voice: (202) 797-5496 >fax: (202) 797-5444 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

