Rob Gonda's Blog

ajaxCFC update 0.73

ajaxCFC has been updated.

The first change is a fix for the problem experienced by some people when sending the & sign by textareas or the suggest example.

The second change is the ability to send named arguments. It works now similar to how flash remoting does: if you send a single argument in form of an object, it will be passed as a collection instead. You may still pass unlimited arguments and ajaxCFC will match them to the expected named arguments in order, but this will be a problem if some of them are optional.

Example:

DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'method', arg1, arg2, arg3, result);

This string will invoke a method passing three arguments, which may be named in your function, but have to be in a specific order.

DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'method', {"cfarg1": arg1, "cfarg3":arg3}, result);

This string will invoke the same method passing only two out of the three arguments.

Related Blog Entries

TrackBacks
There are no trackbacks for this entry.

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

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
This blog is running version 5.9.003. Contact Blog Owner