I was trying to organize my code somewhat and separate my cfc files. I can't
seem to
access anything other than the first CFC file. e.g.,
$.AjaxCFC({
url: "model/query.cfc",
method: qryFunctionName,
data: params,
serialization: "wddx",
success: function(r) {
$.unblockUI();
if(r=='') {
doQueryResults("<p>No Transaction Found</p>");
}
else {
window.location.href=r;
}
}
});
$.blockUI({ css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
opacity: '0',
color: '#fff'
} });
}
Works correctly. But in the same file,
function updateTrackingNumber(TransID) {
var params={};
params.TransID=TransID;
params.TrackingNumber=$('#CertTrackNum').val();
$.AjaxCFC({
url: "model/Status.cfc",
method: UpdateCertTrackNum,
data: params,
serialization: "wddx",
success: function(r) {
$("#CertTrackNum").css("color","green");
$.unblockUI();
}
});
$.blockUI({ css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
opacity: '0',
color: '#fff'
} });
}
throws an "UpdateCertTrackNum is not defined" error. I even tried to do a
<cfinvoke> of
the init function just to see if it would help. It DID call that properly, but
didn't help. Is
there somewhere else I need to initialize the CFC? Is extending AJAX with more
than one
CFC even possible?
TIA,
bob