In the example below, do you put the bodycontent around the inner (or home)
switch, or around all possible switches (a possible nested fb)?
I'm still having trouble when I try to access the login case (i get window
within a window effect).

>From the edihome page (dsp_edihome.cfm) I am calling back to the fb for a
login box... I can't use cfinclude obviously... and I didn't think I could
include the template directly as in: <cfinclude
template="index.cfm?fuseaction=test">.

Thank you for any help.... I home I am clear in my question.
//je


INDEX.CFM ------------------------------
<!--- determine if I am to delegate this fuseaction --->
<cfif listlen(attributes.fuseaction, '.') GT 1>
        <cfinclude template="#listfirst(attributes.fuseaction, '.')#/index.cfm">
<cfelse>
<cf_bodycontent>        <!--- capture the fusebox for display in app_layout --->
        <!--- ooh... I get this one eh? I will process this fuseaction then... --->
        <cfswitch expression="#attributes.fuseaction#">
                <cfcase value="edihome">
                        <cfset request.xfa.login = "login">
                        <cfinclude template="dsp_edihome.cfm">
                </cfcase>

                <cfcase value="login">
                        this is the login
                </cfcase>

                <!--- *** default fuseaction for error catching *** --->
                <cfdefaultcase>
                        <cfoutput>
                        I have received the fuseaction: 
<b>#attributes.fuseaction#</b>, and I
don't know what to do with it.
                        </cfoutput>
                </cfdefaultcase>
        </cfswitch>
</cf_bodycontent>
</cfif>


dsp_edihome.CFM ------------------------------
EDI HOME<br><br>
This is the edi home page and will include basic information about this area
of the web site.
<hr>
A login script is included to verify user access, and select their vendor
information:<br><br><br>
<cfoutput>
<cfmodule template="index.cfm" fuseaction = 'login'>
</cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to