I just ran your code and did see it in the source. 

Is it possible that due to whitespace, the string was pushed down in the
source?

Terrence Ryan 
Senior Systems Programmer
Wharton Computing and Information Technology 
        
E-mail:         [EMAIL PROTECTED]

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 5:51 PM
To: CF-Talk
Subject: Application.CFC unusual behavior.

Ok this is a bit weird.  I am playing with Application.cfc trying to
figure out its peculiarities.  I saw in the CFML documentation an
example of an output in the onApplicationStart function.  That seemed
odd but I gave it a try.  It worked in that the string I outputted was
sent to the browser, but the really weird part was that the string does
not appear in the source!

Is there somewhere that might document this behavior?  Is it a bug or a
feature?  If a feature, how would one use this in a legitimate manner?

<cfcomponent>
<!--- Initilize application variables and state. ---> <cfscript>
        this.name="AppCFC Testing";
        this.applicationTimeout = createTimeSpan(0,0,5,0);
        this.clientManagement = false;
        loginStorage = "Session";
        sessionManagement = true;
        sessionTimeout = createTimeSpan(0,0,2,0); </cfscript>

<cffunction name="onApplicationStart">
<cfoutput>
This is where code that runs when the application starts goes.
</cfoutput>
</cffunction>

</cfcomponent>

I haven't tried this form other functions yet.

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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

Reply via email to