Raymond Camden’s ColdFusion Blog: Using argumentCollection with AJAX calls to ColdFusion Components

In AJAX, ColdFusion, ExtJS, jQuery by bchesley0 Comments

If you pass argumentCollection=data to a CFC method (or any UDF), then ColdFusion acts as if you had passed arguments name, age, and coolness. As I said above, this isn’t new at all, but I’ve never seen it used with an AJAX post like this. What’s nice then is that on the server side, you can have a “proper” method without any if/else statement to see if the result was JSON. As a quick example, here is an updated version of the front end code based on the previous example. I went ahead and added jquery-json to the template to further simplify things.

via Raymond Camden’s ColdFusion Blog: Using argumentCollection with AJAX calls to ColdFusion Components.

Awesome tip and as usual a complete and yet concise example of how to use it.

Leave a Comment