Joseph DeVore's Blog: CFFORM Confirmation Alert with OK/CANCEL, doing different actions for either.


Viewing By Entry / Main
October 4, 2005
<cfsavecontent variable="as">
   var confirmation = function (evt)
  {
      switch (evt.detail) {
         case mx.controls.Alert.OK:
            alert("You clicked OK","OK!");
            // do something
         break;
         case mx.controls.Alert.CANCEL:
            alert("You clicked CANCEL","CANCEL!");
            // do something
         break;
      }
  }
  alert("Are you sure?", "Warning", mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirmation);
</cfsavecontent>

Comments

Comments are not allowed for this entry.













Editor Login ›