0

ColdFusion 8: Screencast of cfAjaxProxy, the Tag That Blurs The Line Between CF and JS

ColdFusion 8

The cfAjaxProxy tag creates all the JavaScript needed so you can call functions in a cfc directly from JavaScript.  This  3 minute screencast walks through a simple, yet powerful, example.

This was also the first time I played with the Derby database examples provided by CF (and found out its case sensative!).  The code in the screencast is below.

index.cfm:

Artists.cfc:

artists.js:

tags:
ColdFusion 8
Brian Swartzfager said:
 
Another excellent demo, Sam!

I think cfajaxproxy is really going to make it easy for folks to write their validation code once (in CFCs) and then leverage that code for both client-side validation (using cfajaxproxy) and server-side validation (to handle cases where users have JavaScript turned off).
 
posted 441 days ago
Add Comment Reply to: this comment OR this thread
 
 
Thanks!

I think form validation is an interesting potential for cfajaxproxy but would want to do some performance tests first. Users often expect validation to happen instantly
 
posted 440 days ago
Add Comment Reply to: this comment OR this thread
 

Search

About Me
I am a 32-year old Web Developer specializing in ColdFusion. I live and work in downtown Washington, DC with my wife and daughter. I work for Interfolio where we help people collect, deliver and showcase their life's work. Read more About Me

2007 CFeMmy Best Newcommer winner
As voted on by fellow CF Bloggers.