Question
I am in Middle of CFC
I implement my ajax Delete functionality and it works fine
within a grid.
it delete the records.
But i have a image related to the delete functionality. whenever i run that function my image do not get deleted.
how can i change the code to make it work:
here is my code:
function deleteTheme() {
var proxyp = new DeleteThe();
proxyp.setErrorHandler(errorHandler);
proxyp.setCallbackHandler(DeleteCallback);
var dID = ColdFusion.getElementValue('Grid01','Form1','ID');
proxyp.DeleteThe(dID);
<cfajaxproxy cfc="cfc.cfc1" jsclassname="DeleteThe">
this code runs the cfc function which delete the joke.
i tried adding the functionality like in a cfc in different function
<cfif fileexists('imagefile')>
<cffile action=delete" file="path">
</cfif>
but it did not worked out
it delete the records.
But i have a image related to the delete functionality. whenever i run that function my image do not get deleted.
how can i change the code to make it work:
here is my code:
function deleteTheme() {
var proxyp = new DeleteThe();
proxyp.setErrorHandler(errorHandler);
proxyp.setCallbackHandler(DeleteCallback);
var dID = ColdFusion.getElementValue('Grid01','Form1','ID');
proxyp.DeleteThe(dID);
<cfajaxproxy cfc="cfc.cfc1" jsclassname="DeleteThe">
this code runs the cfc function which delete the joke.
i tried adding the functionality like in a cfc in different function
<cfif fileexists('imagefile')>
<cffile action=delete" file="path">
</cfif>
but it did not worked out
