Search the web
Sign In
New User? Sign Up
ajaxcfc · ajaxCFC Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
multiple CFC files?   Message List  
Reply | Forward Message #1581 of 1584 |
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








Thu Feb 26, 2009 7:03 pm

dronski
Offline Offline
Send Email Send Email

Forward
Message #1581 of 1584 |
Expand Messages Author Sort by Date

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:...
dronski
Offline Send Email
Feb 26, 2009
7:03 pm

Never mind. I just realized I forgot to put the function name in quotes. (slowly crawling under the desk in shame....)...
dronski
Offline Send Email
Feb 26, 2009
7:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help