blog | bio | agenda | jobs | ajaxCFC

Bye bye cfajax- hello ajaxCFC

After dealing with cfajax I decided to write my own AJAX component. Don’t get me wrong, I like cfajax and it worked great for a while. I even wrote two articles about CF+AJAX, but I wanted something better (article 1, article 2)

CFAJAX has some neat features like using hints to automate some processes, but unfortunately, they’re useless to me.

ajaxCFC is component based and extremely easy to expand. It also automatically and painlessly maps all JS strings, arrays, or objects to ColdFusion so there is no need for wddx or json.

ajaxCFC permits both asynchronous (default) or synchronous modes. Many may argue that it defeats the purpose, but I will post some examples soon that show how useful and necessary is to send synchronous packets.

You can download the framework and some examples through the projects page. Documentation will come soon.

As usual, comments are welcomed.

TrackBacks
There are no trackbacks for this entry.

Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?0CEE8936-3048-7431-E4485A7582D56581

Comments
I'd like to see some live examples before I download it. That way I can 'try it before I buy it'. ;)
# Posted By Jacob Munson | 12/8/05 10:29 PM
Actually I've developed something similar to your ajaxCFC about 4 months ago. Different approach and the code is about 77 lines. All request will be made using single url (ajax.cfm). Ajax.cfm will include coldfusion file according to C0-SCRIPTNAME. However I discontinued using it since I prefered to use taconite. You can see the code at http://www.hairiemx.com/files/ajax.cfm.txt. The code is not really complete and it does not have documentation also.
# Posted By hairiemx | 12/9/05 12:23 AM
Rob, Great job. I look forward to playing with it.

Sami
# Posted By Sami Hoda | 12/9/05 10:45 AM
Jacob,

I added the first two examples now. I'll add more complex ones over the weekend.

Hairiemx, I would have to disagree. The code you provided looks exactly like cfajax, and every cfajax’s comments. It does not permits complex objects to be passed seamlessly, and it’s not object oriented. I am not arguing that it works, all I’m saying is that even though ajaxCFC is only in alpha right now, it’s not comparable with the script you provided.

Sami, thanks a lot. I’m looking forward to make this the most widely used cf+ajax framework. I welcome any critiques or requests of what you want to see implemented to make the CF’s programmer life easier.
# Posted By Rob Gonda | 12/9/05 2:23 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.