AjaxCFC for jQuery Alpha3 Release
I just updated the SVN with the 3rd alpha release of AjaxCFC for jQuery. For those of you not familiarized with source control repositories, I included the code into the main AjaxCFC download (thank Rey Bango for reminding me four times a day), available at RIAForge and my blog. You can also just click here.
This release includes several small fixes in the JavaScript and upgrade to the latest CFJSON. Thanks to Larry Reinhard for pointing it out.
The code seems to be really stable; I haven't got many bug reports, au contraire, Jacob Munson, from CFQuickDocs, said he dropped it into his code w/o any complications, maintaining all existing functionality.
I shall wrap up some documentation and officially release it for production.
This release includes several small fixes in the JavaScript and upgrade to the latest CFJSON. Thanks to Larry Reinhard for pointing it out.
The code seems to be really stable; I haven't got many bug reports, au contraire, Jacob Munson, from CFQuickDocs, said he dropped it into his code w/o any complications, maintaining all existing functionality.
I shall wrap up some documentation and officially release it for production.
TrackBacks
There are no trackbacks for this entry.
Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?B40A8488-3048-7431-E4CA4F565B067D6A
http://www.robgonda.com/blog/trackback.cfm?B40A8488-3048-7431-E4CA4F565B067D6A









Its good to have someone to push you every so often. ;o)
It seems to be working correctly. Sorry for the false start :/
What an outstanding tool - thanks again for providing this.
When you say 'get an error in JavaScript'.. you mean after the Ajax call? in your callback handler? The log4javascript window only logs Ajax traffic, and does not trap your client side errors... it is not a bad idea to create an window.onError function and bind it, but it was not the original idea. The reason why you see the recordset if because the Ajax call completed successfully.
I see your point though; I'll see if I can add a log of the JS error... I would need to rethrow the error for you to be able to trap it using your consoles, profilers, debugging tools...
if so, why do we need dwr and jquery? Why not just jquery alone with your cfc? And how much does all that clientside js weigh?
Or is the dwr stuff all serverside?
Thanks.
Periodically, and only in firefox, ajaxCFC calls will fail to get any response from the server. This can be immediately fixed by clearing all private data (cache, cookies, etc), and then it works perfectly.
Any idea why this is happening, and is there a way to prevent it on the server side?
Thanks.
$('completedtab').style.display = "none"; //prototype
$('completedtab').innerHTML = r; // prototype
must be changed to this:
$('#completedtab').css("display","none"); //jquery
$('#completedtab').text(r); //jquery
I assumed incorrectly that the error was buried deep in the AjaxCFC Jquery framework; it's not. Any javascript error will be displayed in a popup window.
Since we are standardizing on jquery this is an important release for us. Thanks to all involved.
Out of all this, what can I remove for production?
<script type="text/javascript">
// additional files
$.AjaxCFC({require:'json'});
// more additional files
//
$.AjaxCFC({require:'json,wddx,dDumper,log4j,DWRSyntax,blockUI'});
// optional global settings
// using these setters also automatically include dependencies
$.AjaxCFCHelper.setDebug(false);
$.AjaxCFCHelper.setBlockUI(false);
$.AjaxCFCHelper.setUseDefaultErrorHandler(false);
$.AjaxCFCHelper.setSerialization('json'); // json, wddx
$.taconite.debug = false;
$.taconite.enableAutoDetection(false);
</script>
btw - I'm loving this whole Ajax process thanks to you... smooth, clean, simple, THANKS!
- Thomas
How close are we to "gold"?
So I guess there's no good reason to use wddx now, since json is quicker?
Thanks for the awesome tool Rob!
HTH
It turns out that there was a problem in json.cfc. The version in the AjaxCFC jquery branch in the riaforge repo is 1.6b, I replaced that with 1.7 from http://www.epiphantastic.com/cfjson/
That seems to have fixed it. Hope this helps someone else.
Jeffrey
I know that there is a contactManager sample app of a previous version that was Mach-II integrated but these alphas seem to have some significant differences from that old version. Thanks in advance.
Thanks