Question
cfajaxproxy hangs
I'm having trouble getting cfajaxproxy to return the result
from my function. I can call the function and get a response when I
use <cfinvoke>, but when I use cfajaxproxy the function hangs
at the <cfreturn> statement. Here's my function code:
<cffunction
name="hoser"
access="remote"
returntype="string">
<cfset myReturnFoo = "foo">
<!--- code hangs here when called by cfajaxproxy--->
<cfreturn myReturnFoo>
</cffunction>
And here's how I'm calling it:
<cfajaxproxy cfc="idiot" jsclassname="idiot_proxy" />
function getHoser() {
var instance = new idiot_proxy();
instance.setErrorHandler(getHoserFailure);
instance.setCallbackHandler(getHoserSuccess);
instance.hoser();
}
function getHoserSuccess(result) {
alert("In getHoserSuccess");
alert(result);
}
function init() {
getHoser();
}
Any help would be greatly appreciated.
<cffunction
name="hoser"
access="remote"
returntype="string">
<cfset myReturnFoo = "foo">
<!--- code hangs here when called by cfajaxproxy--->
<cfreturn myReturnFoo>
</cffunction>
And here's how I'm calling it:
<cfajaxproxy cfc="idiot" jsclassname="idiot_proxy" />
function getHoser() {
var instance = new idiot_proxy();
instance.setErrorHandler(getHoserFailure);
instance.setCallbackHandler(getHoserSuccess);
instance.hoser();
}
function getHoserSuccess(result) {
alert("In getHoserSuccess");
alert(result);
}
function init() {
getHoser();
}
Any help would be greatly appreciated.
