Requests to ajax.cfc actually go through a wrapper function, which in
turn calls your function - like "init"
Anyway, for security purposes, ajax.cfc requires *ALL* methods being
accessed via ajax to have an access type of "remote", just like a web
service.
Rick
Here is another function i just tested and worked fine. This method does not
have an access level of remote and it works fine. Am i just not allowed to
define an init method? if thats the case I am going to have some problems.
<cfcomponent name="Security" extends="ajax" hint="I handle security in our
application.">
<cffunction name="authenticate" access="public" returntype="boolean"
hint="I will authenticate a user">
<cfargument name="username" type="string" required="true" />
<cfargument name="password" type="string" required="true" />
<cfset var isAuthenticated = false>
<cfif arguments.username EQ "admin" AND arguments.password EQ
"password">
<cfset isAuthenticated = true>
</cfif>
<cfreturn isAuthenticated>
</cffunction>
</cfcomponent>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262632
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4