If you move the ajax.cfc file then you need to change the mapping in your cfc 
to the match. For example, if Ajax.cfc is in the CustomTag directory under 
com/mysite/ajax.cfc then you need to change to 
<cfcomponent extends="com.mysite.ajax">. 

If you put it in the root under {webroot}/ajax/ajax.cfc 
then it should change to 
<cfcomponent extends="ajax.ajax"> and so on.

As for the javascript files you include should do the same.

<script type='text/javascript'>
_ajaxConfig = {'_cfscriptLocation':'myCFC.cfc', 
'_jsscriptFolder':'/Global/Javascript/ajaxCFC'};
</script>
<script src="/Global/Javascript/ajaxCFC/ajax.js" 
type="text/javascript"></script>

This mapping means that myCFC.cfc is in the same folder as my calling page and 
that the javascript files are in the root directory under  
/Global/Javascript/ajaxCFC.

In CF Studio just drag the ajax.js file into your template to get the proper 
mapping.



> I'm sure there is a simple answer to this. I'm trying to get the echo 
> example loaded on a web site. If i go directly to the 
> ajaxcfc/examples/echo/index.cfm it works fine. When i try to move the 
> directory examples to the root i get javascript errors. Specificly 
> [object Error]. I figure there is a mapping someplace that needs to be 
> changed, but i can't find it. Anyone have this problem who can offer  
> me 
advice?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:254828
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to