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.

Vince Bonfanti
http://blog.newatlanta.com
 
New Atlanta Communications, LLC
http://www.newatlanta.com
 

> -----Original Message-----
> From: Jim Davis [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 15, 2005 3:13 PM
> To: CF-Talk
> Subject: RE: Ajax and CFCs
> 
> I feel like the point has been lost here.
> 
> There are two issues at question:
> 
> 1) Accessing (connecting, consuming, whatever) web services 
> via the client (presumably via JavaScript).
> 
> 2) Passing structured data once you access them.
> 
> EVERYTHING can do the first.  It's easy to call CFCs (whether 
> on CF or BD), ..NET services, etc using the client.  Simple.  
> You can pass structured form fields (which is what CFAJAX and 
> it looks like WebOrb does).
> 
> It's the second bit that gets confusing as hell.
> 
> There are lots of options to do this and all essentially do 
> the same thing:
> convert structured data to text and back.  It's a shame 
> however that there's not more cross-platform support for SOMETHING.
> 
> JSON has a lot of support, but it's relatively weak (it has 
> no concept of data typing for example) compared to others.
> 
> WDDX still works... but it's been YEARS since it's had any 
> sort of work done on it.  People don't want to use 5 year old 
> Objects for mission-critical stuff.
> 
> There are dozens if not hundreds of custom solutions using 
> structured form fields.  Many of these return raw JavaScript 
> code (CFAJAX and CFWDDX do
> this) instead of truly allowing the client to parse the information.
> 
> SOAP was supposed to be the way to go, the wave of the future 
> - but the client-side support is pitiful and buggy as hell 
> when it comes to cross-platform consumption.  I can find a JS 
> libraries that support single servers, but nothing general 
> because each server absolutely knows that's it's way of 
> describing data is the best and only way.
> 
> So you're stuck with a nice easy way in JavaScript to get a 
> blob of text from a server but very little to help you from 
> that point on - especially if you don't want to be tied to a 
> single server.
> 
> Jim Davis
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215043
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