The best way to do ajax with Cold Fusion is ajaxCFC which encapsulates all the magic into simple calls, including serialization/deserialization. This means you can send form data directly to a CFC method and return a recordset/array/structure/(soon xml) in JSON or WDDX formatted and it will be transparently converted to/from js/cf native objects.
jQuery is a fabulous framework for client-side manipulation, and ajaxCFC is currently being branched to support it. The jQuery plugin is on its alpha3 release, beta due sometime soon. It works very well as is. http://www.robgonda.com/blog/ has the link to the alpha3 release and some semi-sparse documentation. http://www.robgonda.com/blog/projects/ajaxcfc/ is the ajaxCFC page where you can see some examples using the old method which is incompatible with jQuery. They are still good to understand the concepts. http://tech.groups.yahoo.com/group/ajaxcfc/ is the link to the ajaxCFC user group. I'm a CF veteran and a jQuery semi-novice, but I'm happy to help if I can. Rick Faircloth wrote: > > A question for you CF & jQuery coders. > > What's the best (easiest) way to work with AJAX? > > ColdFusion or jQuery? > > Why? > > I would appreciate your insights.I haven't used AJAX, yet, > but I'm really interested in trying to figure it out. It would > be especially useful in some of the web-based apps that I'm > building that would be used in place of traditional software. > Being able to avoid page changes and page refreshes would > go a long way in helping me sell people on the apps. > > Rick > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/Best-way-to-do-AJAX...-CF-or-jQuery--tf3276462.html#a9113152 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
