I'm trying to bind a spry data set to a CFC function. My code
is working fine in my test environment but not in production. In
production, when I try loading the script that does the binding,
I'm getting an error saying
Error loading spry dataset FooYou from URL: /MyComponent.cfc
with params
_cf_nodebug=tru&_cf_no_cache=true&cfclientID=bunch-of-chars&method=myMethod&argumentcollection=%7B%7D...
The code in both the production and test environement are
identical; but the directory structures are a bit different. In the
test environment, the directory structure is as follows:
c:/wwwroot/SomeDir/clientLists/
The myComponent.cfc and the script that I'm invoking are in
clientLists/.
http://someIP/ points to wwwroot/SomeDir/
In production, it's more like this:
c:/wwwroot/AnotherDir/SomeDir/clientLists/
and
http://www.DomainName.com/
points to wwwroot/AnotherDir/SomeDir/
and again, the CFC and script that I'm invoking are in
clientLists/
My call looks like this:
<cfsprydataset
name="dsMyDataList"
type="xml"
bind="CFC:MyComponent.geData(paramID={frmStuff:paramID})"
xpath="datalist/dataitem"
options="{method: 'POST' }"
onBindError="errorHandler"
>
I don't get the error until I try to use the dataset with
spry:region="dsMyDataList"
Seems like it must be the directory structure...but I've yet
to come up with something that works. Any clues would be
apprecitaed...