I am trying to use cfajaxproxy to call a cfc.  This work on my local machine, 
but not in our testing environment.

I get an error:
JSON parsing failure: Expected '"' at character 2:'&' in 
{"encPolnum":"5061800"}

If I remove the arguments the function works fine.
Any idea why the html encoded " is used instead of "   ?



<cfajaxproxy cfc="webroot.#Request.SiteDir#.invservices.riskinfo" 
jsclassname="myproxy">
        
<script type="text/javascript">
p = new myproxy();
p.setCallbackHandler(handleResult);

function handleResult(r) {
   alert(r);
}

function saveRiskObjective(obj){
        var sPolnum = obj.id;
        p.saveRiskInfo(sPolnum);
}
</script>

<cffunction name="saveRiskInfo" access="remote">
<cfargument name="encPolnum" type="string" required="Yes" />

<cfset var local = #encPolnum# /> 

<cfstoredproc procedure="#Request.sSchema#.pkg_riskinfo.saveRiskInfo" 
datasource="#Request.sDSN#" returncode="No">
<cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="sPolnum" 
value="5061800" null="No" />
<cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="sType" 
value="risktolerence" null="No" />
<cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="sValue" value="2" 
null="No" />
</cfstoredproc>         

<cfreturn local />
        
</cffunction>


Frank Wheatley 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305850
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to