I have <cfsetting showdebugoutput="false"> at the top
of the calling page.
My ajax json response is coming back fine, but below it,
in firebug, is ColdFusion debugging code...why?
What's triggering that?
The json response is:
{"MESSAGE":"Success","FIRST_NAME":"Linda","LAST_NAME":"DeLoach"}
which is correct.
Clues?
Thanks,
Rick
Here's the call using jQuery:
$(document).ready(function() {
$('.agents').change(function() {
$('option:selected', this).each(function() {
var formval={ dsn: '<cfoutput>#application.dsn#</cfoutput>',
agent_id: $(this).val() };
$.ajax({cache: false,
type: "POST",
url:
"../components/floor_duty.cfc?method=get_new_agent&returnFormat=json",
dataType: "json",
data: formval,
success: function(response) {
if (response.MESSAGE ==
'Success')
alert('Success');
else
alert('Failure');
}
});
});
});
});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318645
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4