I realize this isn't a pure CF question, but I'm hoping some of you CF'ers out 
there have run into this before.

I have a flash CFFORM that I've set up a couple of Flash Remoting calls in.  
The first call to insert a record into a related database table works perfectly 
when the button is pressed.  However, what I need is for a second remoting call 
to be fired off when the results of the first are returned.  I can't seem to 
get that second one to execute while the call is inside the response handler of 
the first.  If I put a second button on the form to execute the second call, it 
works fine.

Here's the code I'm working with.  I'd appreciate any ideas on how I can make 
this work automatically without the need to press a second button.

------ Button in Flash form ------
<cfinput type="button" name="QueueCase" label="Add to PACER queue" value="Add 
to PACER queue" onClick="queuePacer()">

------ Action script code ------
caseHandler.queueCaseForPacerDownload_Result = function( results: String ):Void 
{
  mx.managers.CursorManager.removeBusyCursor();
  
  <!--- Call to 2nd function --->
    
  if(results == "Success"){

    
caseDetails.myGlobalObjects.caseService.getDocketSheet(_root.Docket_Number.text);

    alert('Case successfully added to download queue. Docket download could 
take as long as 15 minutes.  You can continue your work while the docket sheet 
is downloaded.');
                                
  }else
  {
    alert('There was a problem adding the case to the download queue: ' + 
results);
  }
                        
}


Thanks
Dan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to