I am having a problem with some <cfajaxproxy> calls on my production web server. I have made a very simple example to illustrate this problem. This code works perfect on our local development server (same OS and CF version as the production server) but it fails on the production server.
First the example code...
<!---This is index.cfm--->
<cfajaxproxy cfc="test" jsclassname="testCFC">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
var myTest = new testCFC();
callback = function(result)
errorHandler = function()
alert("There was a problem running method.");
<!---This is test.cfc--->
<cffunction name="testMethod" displayname="test" access="remote" output="false" returntype="string">
<cfset CONTENT="This is the Result">
Both machines are Ubuntu 9.04 with CF 9. The only thing I can find different between the servers is for some reason the JVM encoding on the dev server is UTF8 and the JVM encoding on the production server is ASCII. I do not know why these are different and I cannot find a way to change them.
Also, when I inspect the code in Firebug, the argumentCollection submitted on the production server is always:
No matter what is passed it is always the same as above. On the dev server you can see the arguments pass as expected. In the simple example above there are no arguments passed and the argumentCollection on the dev server is:
as expected ...
Thanks for any help in advance, this is really confusing me.