ajaxCFC complex objects echo example
Client Side Script
<script type='text/javascript'>_ajaxConfig = {'_cfscriptLocation':'echoTest.cfc', '_jsscriptFolder':'../js'};</script>
<script type='text/javascript' src='../js/ajax.js'></script>
<script type='text/javascript' src='../js/dDumper.js'></script>

<script type="text/javascript">
	function doEcho()	{
		
		var _o = {"bindings": [
		        {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"},
		        {"ircEvent": "PRIVMSG", "method": "deleteURI", "regex": "^delete.*"},
		        {"ircEvent": "PRIVMSG", "method": "randomURI", "regex": "^random.*"}
		    ]
		};
		
		// send data to CF
		DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'echo', _o, doEchoResult);
	}
	
	// call back function
	function doEchoResult (r) {
		// dump complex object to the screen
		sDumper(r);
	}
	
</script>

	<fieldset>
	<legend>ajaxCFC complex objects echo example</legend>
	<input type="submit" value="send" onclick="doEcho();">
	</fieldset>
	
Server Side Script
<cfcomponent extends="ajax">
	
	<cffunction name="echo" output="no" access="private">
		<cfargument name="obj">
		
		<cfreturn arguments.obj />
	</cffunction>

</cfcomponent>
	
description This is a simple example of a javascript complex object going to a CFC and coming back.