I would like to call a cfc function that I created that will take an input, and based on that input, mark a bit field on a MSSQL database. It's something I'm not too familiar with, but looks something like this.
Agendalist CFC
<cffunction name="iTalked">
<cfargument name="SpeakerName" required="true" type="string">
<cfquery name="iTalked" datasource="SpeakerCard">
UPDATE tbl_SpeakerCard_Log
SET Spoken = 1
WHERE SpeakerName = '#SpeakerName#'
</cfquery>
<cfreturn iTalked>
</cffunction>
AJAX Call
function HasSpoken(name)
{
$.AJAX('actions.AgendaList.cfc?wsdl', {method : 'iTalked', SpeakerName: name});
}
I'm pretty sure my Ajax call is incorrect in some form, but I'm not well versed enough to understand what the error is. if you can offer any help I'd appreciate it. TIA!