You should remove everything that's HTML specific from your application cfm.
Create a base Application.cfm that is universal to all requests.

Then at the end it can do some detection to determine the request type and
include the appropriate file

<cfif is html>
  <cfinclude template="Application_HTML.cfm">
<cfelse>
  <cfinclude template="Application_Flash.cfm">
</cfif>

cgi.script_name will help with this, or you can look for the Flash scope.

My $0.02.

Sam


----------------------------------------------
Blog:  http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
----------------------------------------------

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Adrian Lynch
> Sent: Thursday, July 24, 2003 8:40 AM
> To: Cfcdev (E-mail)
> Subject: [CFCDev] Calling CFCs remotely and Application.cfm
>
>
> I have just noticed that when you request a cfc (in this case via Flash)
> that the Application.cfm file is processed. I hadn't given the process
> involved much thought until I put some redirects in
> Application.cfm and all
> remote calls stoped working.
>
> My Application.cfm file contains includes and functions that run that are
> specific to the html site, I've had a look at CGI.HTTP_REFERER
> and it seems
> that all calls from flash are http://mydomain.com/flashservices/gateway/ ,
> so I thought that to speed things up I could check the http referer and
> include code as needed.
>
> Has anyone else found this to be a problem? Or is it the case that I have
> incorrectly structured things with regard to my site layout.
>
> It has to be said, I did build it with the HTML site in mind.
>
> Any ideas?

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to