> -----Original Message----- > From: Vince Bonfanti [mailto:[EMAIL PROTECTED] > Sent: Monday, August 15, 2005 3:37 PM > To: CF-Talk > Subject: RE: Ajax and CFCs > > Thanks, Jim. That's exactly what WebORB does--makes it easy to handle > structured data return from a CFC within your JavaScript. Take a look > again > at the example on my blog (the JavaScript source code is all there) and > see > how easy it is to process a query variable returned from a CFC: > > > http://blog.newatlanta.com/weborb/examples/richclientprimer/javascript- > ajax/ > phonebook-bluedragon.cfm > > WebORB makes handling the other CFML complex types (arrays and structs) > just > as easy.
Yup - for CF types. And that's not even remotely a bad thing. CFAjax works wonderfully in the same scenario as well. If you can control both the client and the server any number of solutions will work great. It's when you want a client-side application to accept data from a CFC, a ..NET service, a PERL service and a Java service that things start to get ridiculous. JSON works across implementations (Java, PERL, Python, JavaScript, CF, etc) because its implementation is so very, very simple. But it lacks all support for non-native JS objects and doesn't actually support many native objects (like Dates). We're down to the point where if you want something cross platform you're stuck with non-trivial task of writing it yourself or accepting severe compromises... and this far into the game it seems ridiculous that this should be the case. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215047 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

