Question : URGENT: Need help with ColdFusion.Window.onHide

Hi,

I'm on CF 8.  I'm trying to pass a parameter value into the cleanup()  (see code below), but I'm getting an error.  Is there a way to pass a parameter into the cleanup() then?

<script>
function cleanup(id) {
    ColdFusion.Window.destroy('myWin',true);
   document.getElementById('checkid_' + id).style.display = '';
}
function showWin(id) {
      //do we have one?
     try {
          ColdFusion.Window.destroy('myWin',true);
      } catch(e) { }
     
      ColdFusion.Window.create('myWin','Edit Prduct Info', 'test123.cfm?id='+id,{center:true});
      ColdFusion.Window.onHide('myWin',cleanup(id));
 }
</script>

Many thanks in advance.

Answer : URGENT: Need help with ColdFusion.Window.onHide

No, you don't have to undeploy them, they can be stopped without any problems.
Random Solutions  
 
programming4us programming4us