• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cffunction can be called public or remote, but you can not tell wich one was used

Guest
Mar 12, 2010 Mar 12, 2010

Copy link to clipboard

Copied

if you have

<cffunction name="setSomething" access="remote" returntype="void" hint="does something depending on what access method was used" >
<cfargument name="id" required="true" type="numeric">

<cfset accessmethodused=thisfunction.methodused>

<cfif thisfunction.methodused eq "remote"> redirect after call</cfif>

<cfif thisfunction.methodused eq "public"> dont redirect anywhere </cfif>

<cfreturn>
</cffunction>

TOPICS
Advanced techniques

Views

277

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 15, 2010 Mar 15, 2010

Copy link to clipboard

Copied

LATEST

Doesn't isSoapRequest() - http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6c7e.html -  do what you want?

--

Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation