The application of alert box in Flash form

Source: Internet
Author: User

About in the Flash form in the judgment should, ColdFusion should have very good, beautiful hints, but sometimes to use pop-up window to give customers to decide whether to continue to do or cancel the current operation of such a situation, so is similar to the confirm of JS function Oh!

The specific implementation is to transform the Flash form alert box.

Alert ("Are you sure your want to remove all records?", "Warning", Mx.controls.Alert.OK | Mx.controls.Alert.CANCEL, Myclick Handler);

In the controls add two warning to use the button, to transform it, so that itself a button alert into two, this technique is the inspiration on the asfusion, if my flash as familiar, I can probably do more exciting, So we need to work hard

<cfsavecontent variable= "Showalert" > var myobj = {}; var myclickhandler = function (evt) {if (Evt.detail = = Mx.controls.Alert.OK) {
Alert ("Records deleted", "Completed"); }}alert ("Are you sure your want to remove all records?", "Warning", Mx.controls.Alert.OK | Mx.controls.Alert.CANCEL, MYCLI Ckhandler);</cfsavecontent>
<cfform name= "MyForm" height= "" width= "" format= "Flash" timeout= "0" > <cfformgroup type= "Hbox" >
<cfinput type= "button" Name= "Mybtn" value= "show Alert"/> </cfformgroup></cfform>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.