Asad,

Use the <cfsavecontent /> tag to store your large block of text into a variable:

<cfoutput>
<cfsavecontent variable="sHtmlSnippet">
<a href="#" onclick="return
window.open('#ServerType#://#cgi.server_name#/#RootFolder#/Int3Launch4.cfm?
&C=1019&NoEncode=1','ServiceWindow','toolbar=no,status=no,scrollbars=no,resizable=no,width=575,height=445,screenX=100,screenY=50,left=100,top=50')"
 language="javascript"><font face="verdana,arial,helvetica" size="-1"
class="tickets" color="##000066"><img 
src="#ServerType#://#cgi.server_name#/#RootFolder#/2001/images/LP_default_b
utton.gif" width="152" height="52" alt="" border="0"></a>
</cfsavecontent>
</cfoutput>

<cfoutput>#htmlCodeFormat(sHtmlSnippet)#</cfoutput>

-Dan

>-----Original Message-----
>From: Asad Khan [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 22, 2007 6:27 PM
>To: CF-Talk
>Subject: Outputting Text (with html code)
>
>I have the following Test that I want to show on the website. But because
>the text is a href i an getting errors.
>
>I tried to use use the HTMLCodeFormat# in the cfoutput tags.
>
>Text:
>
><a href="#"onclick="return
>window.open('#ServerType#://#cgi.server_name#/#RootFolder#/Int3Launch4.cfm?
>&C=1019&NoEncode=1','ServiceWindow','toolbar=no,status=no,scro
>llbars=no,resizable=no,width=575,height=445,screenX=100,screenY=50,left=100
>,to
>p=50')" language="javascript"><font face="verdana,arial,helvetica" size="-
>1"
>class="tickets" color="##000066"><img
>src="#ServerType#://#cgi.server_name#/#RootFolder#/2001/images/LP_default_b
>utton.gif"
>width="152" height="52" alt="" border="0"></a>
>
>
>The following are parameters, that will show actual values on the web page:
>#ServerType#
>#cgi.server_name#
>#RootFolder#
>
>
>
>Here is the code that i have on my page:
>
><cfoutput>#HTMLCODEFORMAT('<!-- Begin Secure Customer Center --->
><a href="#"onclick="return window.open
>('#ServerType#://#cgi.server_name#/#RootFolder#/Int3Launch4.cfm?&C=#Company
>ID#
>&Page=Home&NoEncode=1','ServiceWindow','toolbar=no,status=no,scrollbars=no,
>resizable=no,width=575,height=445,screenX=100,screenY=50,left=100,top=50')"
>lan
>guage="javascript">
><img
>src="#ServerType#://#cgi.server_name#/#RootFolder#/2001/images/LP_default_b
>utton.gif"
>width="152" height="52" alt="Secure Email by PCImail" border="0"></a>
><!---End Secure Customer Center --->')#
></cfoutput>
>
>Any help would be great..
>
>Basically i need to show the code on a website so my customers can take the
>code and use it on their site based on the parameters for them.
>
>--
>Asad H Khan
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281944
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to