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: