Hi,
 
I've got application variables defined in application.cfm:
 
<cfscript>
application.root = "/Intranet";
application.dsn = "Intranet";
</cfscript>

I can use these variables in index.cfm and some include files like LeftNav.cfm:
 
coding...

<cfoutput> 
 <TABLE WIDTH="150" CELLSPACING="0" CELLPADDING="0" BORDER="0">
  <TR>
    <TD>
     <cfif isDefined("request.pageTitle") AND request.pageTitle IS "Welcome to the Intranet">
    <span CLASS='leftnavon'>Intranet Home</span>
     <cfelse>
    <A HREF="" CLASS='leftnav'>Intranet Home</A>
     </cfif><BR>
    </TD>
  </TR>
  <TR>
    <TD BGCOLOR="##999999"><IMG SRC="" WIDTH="1" HEIGHT="1" BORDER="0"></TD>
  </TR>
.......
 
However, when I use them in another include files header.cfm:
 
coding...

<!--- Intranet header include file header.cfm --->
<HTML><HEAD>
<cfoutput>
 <TITLE><cfif isDefined("request.siteTitle")>#request.siteTitle#<cfelseif isDefined("request.welcomemsg")>#request.welcomemsg#</cfif>
   <cfif isDefined("request.pageTitle")> - #request.pageTitle#</cfif>
 </TITLE>
 <link rel="stylesheet" type="text/css" href="">
</cfoutput>
.......
 
Coldfusion throws an error:
 

Element ROOT is undefined in APPLICATION.

 
The error occurred in C:\Inetpub\wwwroot\Intranet\includes\header.cfm: line 7
5 : 			<cfif isDefined("request.pageTitle")> - #request.pageTitle#</cfif>
6 : 	</TITLE>
7 : 	<link rel="stylesheet" type="text/css" href="">
8 : </cfoutput>
9 : </HEAD>
I don't understand why it's working in one template but not another? Please Help!
 
Thanks.
 
(sorry for the long message)
 
George
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

AMES (Adult Multicultural Education Services)
www.ames.net.au


Disclaimer
**********************************************************************
This email and any attachments may be confidential.
If received in error, please contact us and delete all copies.
Before opening or using attachments you should check them for viruses
or defects.
Regardless of any loss, damage or consequence, whether caused by the
negligence of the sender or not, resulting directly or indirectly from
the use of any attached files our liability is limited to resupplying
any affected attachments.
Any representations or opinions expressed are those of the individual
sender, and not necessarily those of Adult Multicultural Education
Services (AMES).

**********************************************************************
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to