So I am using JSMX and CFMX. I have them working using a simple object or CFFuntion output, but I need to transfer an array (really a recordset).
I believe I have the server side working properly, but how do I address the resulting array in JS?
Sample code:
-server side-----------
<cfsetting enableCFoutputOnly="Yes" showdebugoutput="No">
<cfquery name = "q" dataSource = "RF02">
select Folio_Dir, Folio_Name from Folios_
</cfquery>
<cfwddx action="CFML2JS" input= "#q#" toplevelvariable="result">
-client side------------
<script>
function Request(){ http( 'GET', 'jsmx.cfm', Response); }
function Response(){ alert(WddxRecordset.result[0]);}
</script>
I believe I have the server side working properly, but how do I address the resulting array in JS?
Sample code:
-server side-----------
<cfsetting enableCFoutputOnly="Yes" showdebugoutput="No">
<cfquery name = "q" dataSource = "RF02">
select Folio_Dir, Folio_Name from Folios_
</cfquery>
<cfwddx action="CFML2JS" input= "#q#" toplevelvariable="result">
-client side------------
<script>
function Request(){ http( 'GET', 'jsmx.cfm', Response); }
function Response(){ alert(WddxRecordset.result[0]);}
</script>