I've attached some code below that is making me crazy.  I must be 
overlooking something obvious, and hopefully someone can point it out for 
me.  The essence of what is going on (which is described in the code below) 
is that I have a fuseaction that contains a template that calls another 
fuseaction in an attempt to grab all the HTML returned and put it in a 
textarea form field.  The problem is that somehow 2 copies of the HTML code 
that is returned from the fuseaction is being produced.

I have the code in a text file if anyone wants a closer/cleaner look at 
things.  I am very grateful for any insight here.

Thanks!

Rich









<!---
==========================================================
/// this is the code from my fbx_switch.cfm. It is a fuseaction
that includes a template that requests
another fuseaction in order to provide the administrative user
with the code to put in an email.
==========================================================
--->


<!--- Email generation (standard) --->
        <cfcase value="ShowEmail">
                <cfset Attributes.AdminSectionTitle="Generate Email">
                <cfinclude template="dsp_Generate.cfm">
        </cfcase>




<!---
==========================================================
/// this is the code from dsp_Generate.cfm. It calls a fuseaction that
instead of displaying the html it returns, puts it in a textarea
form field.  Somehow, no matter what I do, the html is returned twice - 2
full pages of html are returned.
==========================================================
--->

        <cfmodule template="../CustomTags/BodyContent.cfm">
                <cfmodule template="../index.cfm" fuseaction="Home.CreateEmailCode">
                </cfmodule>
        </cfmodule>

        <!--- set var for bodycontent output --->
        <cfset html=Trim(request.bodycontent)>


        <form>
                <textarea name="Code">
                <cfoutput>#html#</cfoutput>
                </textarea>

                <br>
                <br>
                <input type=button value="Highlight All" 
onClick="javascript:this.form.Code.focus();this.form.Code.select();">
        </form>




<!---
==========================================================
/// this is the code from fbx_switch.cfm.  in the 'Home Circuit'.
It works fine when called by itself - it returns exactly what I want
it to, and does not duplicate anything when called by itself.
==========================================================
--->

        <cfcase value="CreateEmailCode">
                <cfsetting enablecfoutputonly="yes">
                <!--- stop main layout --->
                <cfset attributes.StopLayout=True>
                <!--- set layout to Issue layout --->
                <cfset attributes.IssueLayout=True>
                <cfset Attributes.AdminSectionTitle="Generate Email">
                <cfset Attributes.PermissionLevel=1>
                <cfinclude template="qry_CurrentIssue.cfm">
                <cfinclude template="dsp_Issue.cfm">
                <cfset attributes.web=false>
        </cfcase>

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to