On 6/3/05, Calvin Ward <[EMAIL PROTECTED]> wrote:
> 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?

I would use a different Application.cfc and have the web services /
remoting CFCs in their own directory. For commonality, both this
Application.cfc and your primary own could extend the same code CFC
(containing the common Application.cfc methods). Your primary
(webroot) Application.cfc would then add onRequest().

Another option is to have Application.cfc's onRequestStart() method
check if targetPage ends in ".cfc" and, if so, do
structDelete(variables,"onRequest"); structDelete(this,"onRequest");
(you need both).

Note that the primary reason for using onRequest() is to set variables
scope data that is accessible in your .cfm page - this scenario simply
doesn't apply for web service / Flash Remoting calls!
-- 
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:208504
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