Hi there,
I've been trying to experiment with ajaxCFC a bit but keep getting this strange
error and I'm not really sure what I've done wrong.
I'm using AJAXCFCs jQuery tools for this and in the script below I'm trying to
call a CFC which returns a query set.
$('#finance').ready(function(){
$.AjaxCFC({
url: "com/ajaxGateway.cfc",
method: "getPaymentRequests",
data:{},
serialization: "json",
success: function(data){
$.dump(data); // dump is not part of AjaxCFC.
MyQueryName = eval("(" + data + ")");
}
});
});
If I run this though I get a JS error saying:
JSON is not defined on line 165 of jquery.AJAXCFC.js
I've seen this kind of structure on a few examples online but I'm not really
sure what I'm doing wrong here.
Also,just for additional information, I can get the DWR version to work fine. I
just think this method is a bit tidier to work with so I want to give it a try.
I'm also using the latest version of the RiaForge site.
Thanks a lot,
James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306516
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4