javascript - Calling a CFC function in AJAX/JQuery -
i call cfc function created take input, , based on input, mark bit field on mssql database. it's i'm not familiar with, looks 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 speakername = '#speakername#' </cfquery> <cfreturn italked> </cffunction> ajax call
function hasspoken(name) { $.ajax('actions.agendalist.cfc?wsdl', {method : 'italked', speakername: name}); } i'm pretty sure ajax call incorrect in form, i'm not versed enough understand error is. if can offer i'd appreciate it. tia!
Comments
Post a Comment