The iframe window popped up by artDialog cannot write programs. solution:

Source: Internet
Author: User

The first time I used artDialog, I didn't know some basic attributes of artDialog. I called the iframe and then called the art. dialog. close.

Pop-up window method (refresh the current form when closing the pop-up window ):

The Code is as follows: Copy code

Art. dialog. open ('editpublicinfo. aspx ', {title: 'add important notifications and special reminders', width: 800, height: 600, lock: true,

CloseFn: function (){

Location. reload ();

}

});

How to disable artDialog when the server control button is used:

Place a hidden Panel on the page by default, and place the code in the Panel. This Panel is displayed when the event is executed.

As follows:

The Code is as follows: Copy code

<Asp: Panel ID = "pnlClose" runat = "server" Visible = "false">

<Script type = "text/javascript">

// Method 1: Close the function by refreshing the parent page

// Window. top. location. reload ();

 

// Method 2: traverse all the forms popped up by art on the parent page and close

JQuery. each (parent. art. dialog. dialogList, function (index, item ){

Item. close ();

});

</Script>

</Asp: Panel>

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.