Looks like maybe you need to escape the "#"  in your href by putting two 
pound signs:

<a href="##" etc.

-- Josh


----- Original Message ----- 
From: "Asad Khan" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Friday, June 22, 2007 4:11 PM
Subject: Re: Outputting Text (with html code)


> Hi Dan:
>
> Thanks for the info:
>
> I tried your code, but it through me an error, which I listed at the end 
> of the reply.
>
> So whet I did was remove the first set of cfoutput tags, then it doesnot 
> give an error, but the parameters have not been converted to their values.
>
> Meaning #ServerType# is coming up as #ServerType#, instead of http, https 
> etc..
>
> ========
> ERROR:
> ========
> Invalid CFML construct found on line 137 at column 21.
> ColdFusion was looking at the following text:
>
> return
>
> The CFML compiler was processing:
>
>    * An expression that began on line 137, column 10.
>      Your expression might be missing an ending "#" (it might look like 
> #expr ).
>    * The body of a cfoutput tag beginning on line 135, column 2.
>
>
> The error occurred in 
> /usr/local/websites/pcmdocs/LP/2001/Company/RegistrationWizard.cfm: line 
> 137
>
> 135 : <cfoutput>
> 136 : <cfsavecontent variable="sHtmlSnippet">
> 137 : <a href="#"onclick="return window.open
> 138 : 
> ('#ServerType#://#cgi.server_name#/#RootFolder#/Int3Launch4.cfm?&C=#CompanyID#
> 139 : 
> &Page=Home&NoEncode=1','ServiceWindow','toolbar=no,status=no,scrollbars=no,
>
> ===================================================================================
>
>
>> 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
>> >
>> >
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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

Reply via email to