jsStringFormat() the callURL. It will take care of escaping everything correctly.
-----Original Message----- From: fun and learning [mailto:funandlrnn...@gmail.com] Sent: Thursday, April 15, 2010 5:26 PM To: cf-talk Subject: Re: what is wrong with this code >Oops, put the +'s back in: >callURL = "<a href='##' onClick='javascript:return parent.frames[1].XYZ(\" >+ fileName + \")'>Link1</a>"; > >On Thu, Apr 15, 2010 at 4:07 PM, fun and learning ><funandlrnn...@gmail.com>wrote: > >> Nope, it displays the following <a href='##' onClick='javascript:return parent.frames[1].XYZ(" + fileName + ")'>Link1</a> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332935 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm