jquery uses dialog to call the popup box

Source: Internet
Author: User

1, jquery can call the popup box, the syntax is as follows:

$.dialog ("Open",
{
ID: ' Dialog ',
Name: ' Create-guide ',
Title: ' Create Result: ',
HTML: $ (' #review-result '). HTML (),
width:460,
Framescrolling: ' No ',
Close:function () {
if (dataarray[1] = = 0) {

}else {
Window.location.href = "${ctx}/web/form/order/build-order.do";
Document.ec.submit ();
}
$ ("#errorBody"). html (');
}
});

<script type= "Text/dialog" id= "Review-result" >
<div class= "Inborder" >

<table class= "List-grid list-grid-highlight" >
<thead>
<tr>
<th width= "120px" >
<label> Application Number </label>
</th>
<th>
<label> reasons </label>
</th>
</tr>
</thead>
<tbody id= "Errorbody" >

</tbody>
</table>

</div>
</script>

Call the Close method to invoke the action that was performed when the dialog paged out of the popup industry.

jquery uses dialog to call the popup box

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.