> -----Original Message-----
> From: James Holmes [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 26, 2005 8:47 PM
> To: CF-Talk
> Subject: Re: GIF Pipes/AJAX/async gateway
> 
> One could also use YODEL as a transport by sending and returning a
> YODEL string via CFAJAX, if you wanted to move complex variables
> around. This would save re-writing the xmlhttprequest calls etc.

'Xactly.  ;^)  YODEL doesn't have any internal infrastructure for data
transfer - you'd need something like CFAJAX (or whatever else you like) to
actually pass the data around.

The next release of the CF and JS serializers (which should be out soon
since I'm on vacation this week) will also add in some automation for
Objects/CFCs.

I think this will work like this (I'm still building it, this is the
theory):

1) You build a CFC-representation of the object your need.  For example a
drop down list might be represented as an array of structs (each struct an
option).

2) The (soon to be released) CF YODEL serializer will automatically generate
the value of the "Custom" attribute based on the name of the CFC.

3) You generate a YODEL custom handler for that custom data type in
JavaScript.  For example a function which takes an array of objects
(structs) an generates an array of Option objects.

>From that point on the act of deserialization will also generate your Option
objects automatically.

Both the JavaScript and the CF YODEL implementations already support custom
handlers - I just want to automate them based on the object name.  Once
that's done I'd like to start a canned library of handlers to make
implementation even easier.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225321
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to