macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

I am Confused at this:

Subject: I am Confused at this:
From: "nightwolf666"
Date: Fri, 5 Dec 2008 13:59:24 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

I have an AJAx Delete Staement. Which runs quite good but i have used confrim 
dialog box of javascript to ask for confirm. But if i say NO in confirm it 
still delete the record:

 I am doing something so wrong buut u not find what:

 can  u guys please help me doing this:

 function deleteSponsorGroup() {
       var proxyDeleteJokeGroup = new deleteSponsor();
       proxyDeleteJokeGroup.setErrorHandler(errorHandler);
       proxyDeleteJokeGroup.setCallbackHandler(productGroupDeleteCallback);
       
       var selectedID = 
ColdFusion.getElementValue('sponsorsGrid','sponsorslist','sponsorID');
       // alert(selectedID);
       [b]confirmDelete = confirm('Are you absolutely certain that you want to 
Delete the selected record?');[/b]
          proxyDeleteJokeGroup.deleteSponsor(selectedID);
    }

 and if i click YES/NO a cfc is executed as:

 <cfajaxproxy cfc="cfc.ad" jsclassname="deleteSponsor">
 regards


<Prev in Thread] Current Thread [Next in Thread>