On 6/2/05, Dave Watts <[EMAIL PROTECTED]> wrote:
> No, don't use OnRequest - that will replace the page that was actually
> requested. You could use OnRequestStart, or just put them in the
> "pseudo-constructor" area I think.

No, if you want page-local variables to be accessible in the requested
page, you *must* use onRequest().

If you do not use onRequest(), variables set in onRequestStart() are
accessible in onRequestEnd() but not in the main page you requested.

As soon as you use onRequest(), all three methods share the same
variables scope and onRequest() <cfinclude>s the requested page.

However, you cannot use onRequest() in an Application.cfc that
controls CFCs that are accessed as Web Services, via Flash Remoting or
as Event Gateways. Read the documentation for more details on that.
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208481
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to