Guys,
I have a program code to pass variables from CF to Javascript using WDDX
packets, in part of my program below, extract() is a Javascript function.
However I need to pass the variable out from JS back to CF, but I realised
that WDDX doesn't have a JS2WDDX and WDDX2CFML action. Is there any way to
pass variables in and out of Javascript function?
<CFWDDX INPUT="#art_synopsis#" OUTPUT="MyWDDXPacket" ACTION="CFML2WDDX">
<CFWDDX INPUT="#MyWDDXPacket#" OUTPUT="DynamicJSCode" ACTION="WDDX2JS"
TOPLEVELVARIABLE="MyJSVariable">
<SCRIPT LANGUAGE="JAVASCRIPT">
<CFOUTPUT>#DynamicJSCode#</CFOUTPUT>
extract(MyJSVariable);
</script>
Thanks,
Roger
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.