Ever since updating to ColdFusion 2016 Update 4, I've been experiencing a new issue.
Here's the code snippet:
<input type='button' name='btn' value='Click me' onclick='proxyFunc();'>
Incorporating the proxy:
<cfajaxproxy cfc='proxy' jsClassName="jsProxyClass" >
The Javascript function:
proxyFunc = function () {
var proxyObj = new jsProxyClass();
proxyObj.setHTTPMethod("post");
proxyObj.setCallbackHandler (function (result) {
console.log(result);
});
proxyObj.func('X');
}
Within the CFC:
<cffunction name='func' access='remote' returntype='string' >
<cfargument name='arg' type='string' required='false' >
<cfreturn 'What is my arg? ' & arguments.arg>
</cffunction>
Upon debugging, I noticed that arguments.arg is empty despite having form.argumentcollection = {"arg":"X"}.
If I switch the setHTTPMethod from "post" to "get", then arguments.arg populates correctly with "X".
All of my previously functional code is now failing post CF update. Any insights on how to resolve this issue would be greatly appreciated. Thank you in advance.