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
You don't necessarily need to use "AJAX" (the XML part, specifically), but you can use a remote server call:
$.get('/execute-function.cfm?func=whatever', function (result) { $('#result').html(result); });
Really depends on what you need to do with the result. The above code will place the HTML result in a div on your page:
You could use an asynchronous call and parse XML, but I've found that I rarely need either.