Dailog_javascript Based on BootStarp

Source: Internet
Author: User
This article mainly introduces the Dailog Based on BootStarp. For more information, see Introduction to BootStrip

Bootstrap, from Twitter, is a popular front-end framework.

Bootstrap is based on HTML, CSS, and JAVASCRIPT. It is concise and flexible, making Web development faster. It was developed by Twitter designer Mark Otto and Jacob Thornton. It is a CSS/HTML framework.

Bootstrap provides elegant HTML and CSS specifications, which are written by the dynamic CSS language Less. Since its launch, Bootstrap has become a popular open-source project on GitHub. It is used by Breaking News of NASA's MSNBC (Microsoft National Broadcasting Corporation. Some domestic mobile developers are familiar with frameworks, such as the WeX5 front-end open-source framework, which is also based on Bootstrap source code for performance optimization.

1.1. Help document keywords

Boostrap modal box oaoDailog

1.2. application scenarios

When you click a button on the webpage, you must receive a prompt for confirmation. You can click the OK button to continue the operation, or you can click the cancel button to cancel the operation;

When you click View on a webpage and the displayed data needs to be displayed in the pop-up box, you can use oaoDailog

1.3. Schematic diagram

Modal, jquery1.9 Based on boostrap3.0

1.4. Instructions for use

Why is oaoDailog required?

A. because of the modal provided by boostrap3.0, you must first define a modal p hidden code on the page. The user writes the content to be displayed to this p. If a page has multiple modal boxes, you need to write multiple hidden modal box p to hide the code, which is unnecessary.

B. because the default modal is not confirmed or canceled, we can write two buttons in the hidden p of the modal box, however, we also need to write js to monitor and confirm the operation performed after the button is clicked, and confirm the operation performed by the button, which is related to the data clicked by the user at the time of pop-up and how the data is transmitted, bootstrap is not provided for us.

C. oaoDailog1.0.0 is used to solve the problem of inconvenient use of bootstrap modal boxes and code redundancy.

:

Start to use

1. Introduce oaoDailog. js

Code:

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.