I had a similar problem when I turned off layout (attributes.stoplayout
= true) the stylesheets would not be included because I was calling the
stylesheet from within my layout file.  So, I fixed it by doing the
following:

<cfif attributes.stoplayout>
        <link rel="STYLESHEET" type="text/css"
href="#fusebox.rootpath#Globals/CSS/fonts.css">
                <link rel="STYLESHEET" type="text/css"
href="#fusebox.rootpath#Globals/CSS/main.css">
        </cfoutput>
    <cfset fusebox.layoutFile = "">
    <cfset fusebox.layoutDir = "">
<cfelse>

        <cfswitch expression = "#fusebox.fuseaction#">
                <cfdefaultcase>
                        <cfset fusebox.layoutFile = "layHome.cfm">
                </cfdefaultcase>
        </cfswitch>
    
    <cfset fusebox.layoutDir = "">


</cfif>

Is this appropriate?  Where should I call the stylesheet if I'm
suppressing layout?

Thanks - 

Tom Schreck
817-252-4900
[EMAIL PROTECTED]

I have not failed.  I've found 10,000 ways that won't work.

- Thomas Edison


-----Original Message-----
From: hal helms [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 11:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Trouble w/ stylesheets & nested layouts

Joel,

This usually happens because we forget that to the browser (which
applies the stylesheet), the request comes from the home circuit, so all
references must be from that home circuit. 

Make sense?

Hal

-----Original Message-----
From: Joel Gargaro [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 26, 2002 12:02 PM
To: [EMAIL PROTECTED]
Subject: Trouble w/ stylesheets & nested layouts


Hi Everybody,

I'm having trouble getting a nested layout to see a stylesheet.  If I 
call the circuit as the top level the layout file uses the correct 
stylesheet.  

However, if I try to call the same circuit as a nested circuit, the 
stylesheet is ignored.  When I view the source code, the link tag is 
included in the header, but the styles are not used.  

Thanks,

Joel Gargaro
Scantron Surveys

==^================================================================
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