OK, I'm 0 for 2 now with the CF 8 Ajax stuff. I never did figure out why my
bind="cfc:etc.." would work and now cfajaxproxy is kicking my butt.
I've got:
<cfajaxproxy cfc="admin.webservices.UserFacade" jsclassname="UserFacade">
<script LANGUAGE="JavaScript" TYPE="text/javascript">
function edit_user(user_id)
{
var this_user = UserFacade.getUsers('','','','',user_id,'');
}
</script>
And my CFC located in /admin/webserivces/UserFacade.cfc
<cfcomponent name="UserFacade">
<cffunction name="getUsers" returnType="any" access="remote">
<cfargument name="page" type="any" default="1">
<cfargument name="pagesize" type="any" default="10">
<cfargument name="sortcolumn" type="any" default="">
<cfargument name="sortdirection" type="any" default="ASC">
<cfargument name="user_id" type="any" default="">
<cfargument name="last_name_starts_with" type="any" default="">
etc...
</cffunction>
</cfcomponent>
However, my JavaScript code throws this error:
Object doesn't support this property or method
I'm afraid this is related to the problem I was having binding my cfgrid to
this CFC. The CFC is in several sub directories, but I see this JavaScript
created on my page:
var
_cf_UserFacade=ColdFusion.AjaxProxy.init('/UserFacade.cfc','UserFacade');
UserFacade.cfc isn't in the root folder!!!
This has got to be a mapping issue or something, but I can't figure it out.
The only CF mapping I have (other than the two mappings set up my default)
is one for "/custom_tags" which doesn't seem like it should affect this.
Suggestions?
~Brad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312213
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4