Ext. MessageBox tool class introduction _ YUI. Ext

Source: Internet
Author: User
Ext. MessageBox tool class introduction, research source code to find more things. Note: 1. Ext. MessageBox is a tool class inherited from the object.

2. In essence, it is only a layer of the current page.

The example is as follows:

The Code is as follows:

Ext. onReady (function () {Ext. messageBox. alert ("prompt", "click me, OK", callBack); function callBack (id) {alert ("click the button ID:" + id);} Ext. messageBox. confirm ("prompt", "make selection, OK", cb2); function cb2 (id) {if (id = 'yes ') {alert ("You clicked yes");} else {alert ("You clicked no") ;}} Ext. messageBox. prompt ("prompt", "Enter some content to see", cb3, this, true) function cb3 (id, msg) {alert ("the clicked button Id is: "+ id +" \ n "+": "+ msg );}});

The above is the Ext. MessageBox tool class introduction _ YUI. Ext. For more information, please follow the PHP Chinese Network (www.php1.cn )!

Related Article

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.