I need to invoke a ColdFusion function(present in a .cfm file) when the user clicks on a link. And I would like to do it using jQuery. I have a jQuery snippet which looks li
Using a ColdFusion variable in JavaScript is powerful! Be sure to use
var #toScript(ColdFusionVAR, 'javascriptVar')#
You can now reference your variable as javaScriptVar using CFAJAXPROXY
Be sure to include this in your template
Using your class on the JavaScript side.
You would us it like so.
var JS_CFC_Obj;
JS_CFC_Obj = new jsCFCclassName()
You can now make calls to functions inside of that cfc.
jsCFCclassName.functionName(javascript var);