ajaxCFC: DWR AddRows function improvement
I just released a small modification, but largely requested by the community: cell Renderers....
As the matter of fact, Kenton Gray came back to the rescue, he modified utils.js and wddx.js, so if you're upgrading, you only need to load those two files. You can check the new use with the same Query Example I posted before, but this time it adds some custom cell functions. Now you can send queries back from CF and easily populate tables with any custom code.
This is the true spirit of open source. Thanks Kenton! if anyone else has any suggestions or contributions, do not hesitate to drop me an email.
As the matter of fact, Kenton Gray came back to the rescue, he modified utils.js and wddx.js, so if you're upgrading, you only need to load those two files. You can check the new use with the same Query Example I posted before, but this time it adds some custom cell functions. Now you can send queries back from CF and easily populate tables with any custom code.
This is the true spirit of open source. Thanks Kenton! if anyone else has any suggestions or contributions, do not hesitate to drop me an email.
TrackBacks
There are no trackbacks for this entry.
Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?E26AF0F2-3048-7431-E474502E3C09FC4C
http://www.robgonda.com/blog/trackback.cfm?E26AF0F2-3048-7431-E474502E3C09FC4C









Suppose callBackFunction returned a query, and based on query result value, I need to do some business logic using CFM.
Inorder to do that, I need to assign the query result to a coldfuson variable. How can I do that?
I use the familiar CFOUTPUT in my AJAX functions to build my table, rows and cells. I then assign the CFOUTPUT to a variable using CFSAVECONTENT and return the variable set by CFSAVECONTENT to the JS function. Works like a charm.
Hope this helps to put you in the right direction.
-Antonio