I created a javascript object
var spanglist = { one: q1, two:q2, three:q3, four: q4};
I create a jjery ajax object to send data to CFC:
$.ajax({ url: 'gridly/components/pay.cfc', type:"POST", dataType:' json', data: {method: "structFromJSobjt", returnFormat:"json", jsStruct: spanglist} });
in my cfc I have the following simple code:
<cffunction name="structFromJSobj" access="remote" output="false" > <cfargument name="jsStruct" required="true" default="" /> </cffunction>
Can someone play me in the direction of a data game when he is at work.
source share