jQuery + AjaxCFC Tutorial Part 3: Debugging

If there's one thing that's for certain it's that Ajax is very cool stuff, and everyone it seems is using it. It allows us as developers to provide for that slick desktop app sort of feel inside of a browser.

On the other hand: debugging ajax calls can be a serious pain in the butt! There are tools out there to help us though: Fiddler, FireBug, GreaseMonkey, Venkmen, etc. and those are fine, but Rob Gonda has provided us ColdFusion programmers with even more functionality when it comes to debugging our XMLHttpRequest calls.

[More]

jQuery + AjaxCFC Tutorial Part 2: Handling Complex Data

Okay. It's late. Really late. But, I'm back -- I know you're thinkin' who the heck are you? -- and part two of my jQuery + AjaxCFC tutorial is finally here. I've been stressing over not having finished this sooner, but I hope some folks will still find it useful.

[More]

Where's Part Two of the jQuery + AjaxCFC Tutorial?

So it's 8:00am here in Texas, and I was about to get in the truck to make the hour (sometimes longer) trip into Dallas to start the work day at one of my clients. Then I get a voicemail from the boss reminding me that he and I have a sales call at 9:30am in Arlington -- an hour or so from Dallas.

[More]

jQuery + AjaxCFC Tutorial Part 1: Erratum 1

In part one of this tutorial series I noted the mechanism by which I enable/disable log4javascript using the CF variable 'JSIncludeList' along with a boolean 'ShowLog4JS'.

<CFSet ShowLog4JS = false>
<CFSet JSIncludeList = "">
<CFIf ShowLog4JS>
    <CFSet JSIncludeList = ListAppend(JSIncludeList, "log4j")>
</CFIf>

I also made mention of the following helper functions:

$.AjaxCFCHelper.setDebug(false);
$.AjaxCFCHelper.setBlockUI(true);
$.AjaxCFCHelper.setUseDefaultErrorHandler(true);
$.AjaxCFCHelper.setSerialization('json'); // json, wddx

I have to admit that I'd not used any of these functions before, but I wanted to at least make everyone aware of their existance. Well, I used the first one on the above list today while helping a friend to debug some code. It turns out that

$.AjaxCFCHelper.setDebug(true);

turns on log4javascript! So, basically I reinvented the wheel, and Rob already had us covered with a mechanism to turn on and off log4javascript.

If I learn anything new between now and when I finally get part two of this tutorial written (probably this weekend), I'll be sure to post another quick errata.

Cheers!

jQuery + AjaxCFC Tutorial Part 1: Setting Up Your AJAX Call

I've recently received a couple of emails from individuals on different mailing lists asking for help using Rob Gonda's AjaxCFC with jQuery. More specifically, what to do with complex data (i.e. a CF query object) once it's come back from the ajax call.

In the case of both the emails I received asking for help, the writers wanted to know (in general) how to update an on-screen table with new records based on the data returned from their AjaxCFC call.

It sounds like a bit of a tutorial is in order, and since I couldn't easily find one on the net, I thought I'd better write one.

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.9.4.001. Contact Blog Owner