Sean, How would you recommend working around the remoting/gateway issue? Simply by not using OnRequest (which impacts the ability to use OnError), or would you have a different solution?
- Calvin -----Original Message----- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 12:10 AM To: CF-Talk Subject: Re: fix for moving legacy code to application.cfc w/ local variab les 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208483 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