jquery plug-in Combo system prototypes <1> page layouts + popup box

Source: Internet
Author: User
Tags min

Using jquery version: 1.9

Choose plugins: UI layout1.3, lhgDialog-4.2.0, JQuery UI 1.10.3.

The 1.layout is well built and is introduced in the page

<script type= "Text/javascript" src= "js/jquery-1.9.1.min.js" ></script>
<script type= "text/ JavaScript "src=" Js/jquery-ui-1.10.3.custom.min.js "></script>
<script type=" Text/javascript "src= "Js/jquery.layout-latest.min.js" ></script>

2. Create a layout

$ (document). Ready (function () {
	$ (' body '). layout ();
}

3. Add a specific style to the DIV

<div class= "Ui-layout-center" ></div>
<div class= "Ui-layout-north" ></div>
<div class= "Ui-layout-south" ></div>
<div class= "Ui-layout-east" ></div>
<div class= " Ui-layout-west "></div>
4. It is important to note that the UI package that joins jquery is designed to give the framework a resize feature

5. Suddenly wanted to directly use the dialog in the jquery UI, the results were tested and there were two problems:

5.1 Problem One: IE8, if you call dialog the top of the HTML has comments, then the popup box will be confused, as shown below:


5.2 Question two: IE8 under the dialog always now in the upper left corner to create and then center, the customer experience is not good

5.3 So, veto the use of this dialog scheme

6.lhgDialog people developed a pop-up box, the document is rich, there are two issues to note

6.1 A child page invokes a function in the parent page:

Window.parent.forChild ();
Forchild () is a function in the parent window

6.2 Calling a function from a child page in the parent page:

ContentDg.content.save ()

CONTENTDG is the variable name defined for the popup box, and save is a method in the popup content page

The final effect:


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.