Я создал объект javascript
var spanglist = {
one: q1,
two:q2,
three:q3,
four: q4};
Я создаю объект jjery ajax для отправки данных в CFC:
$.ajax({
url: 'gridly/components/pay.cfc',
type:"POST",
dataType:' json',
data: {method: "structFromJSobjt",
returnFormat:"json",
jsStruct: spanglist}
});
в моем коде у меня есть следующий простой код:
<cffunction name="structFromJSobj" access="remote" output="false" >
<cfargument name="jsStruct" required="true" default="" />
<!--- AT this point I would like to work with the data contained in the jsStruct object. I can't access the data regardless of the typeI make the cfargument --->
</cffunction>
Может ли кто-нибудь заставить меня поиграть с данными, как только они окажутся в функции.