Resolve Artdialog Pop-up iframe window cannot be closed

Source: Internet
Author: User
Tags html page

Artdialog usage

The code is as follows Copy Code

Art.dialog (Options)

var dialog = Art.dialog ({
Title: ' Welcome ',
Content: ' Welcome to use the Artdialog dialog box component! ',
Icon: ' Succeed ',
Follow:document.getElementById (' btn2 '),
Ok:function () {
This.title (' warning '). Content (' Please note artdialog will be closed in two seconds! '). Lock (). Time (2);
return false;
}
});

Iframee usage

Artdialog for the CMS Class Framework application provides the exclusive plug-ins, such as through the framework, IFRAME, AJAX, cross-frame value-transfer operations.

Example: Use the Open method to embed a page, and use the data method to communicate between each IFRAME:

The code is as follows Copy Code

var val = document.getElementById (' demoinput04-3 '). Value;
Art.dialog.data (' Test ', Val);
Art.dialog.data (' Homedemopath ', './_doc/');

The iframea.html page can now get the data using Art.dialog.data (' test '), such as:
document.getElementById (' Ainput '). Value = Art.dialog.data (' test ');
Art.dialog.open ('./_doc/iframea.html ');


Window method (Refresh the current form when closing the window):

The code is as follows Copy Code

Art.dialog.open (' editpublicinfo.aspx ', {title: ' Add important notice with special reminders ', width:800, height:600, Lock:true,

Closefn:function () {

Location.reload ();

}

});

Artdialog shutdown method When using the server control button:

A default hidden panel is placed on the page, and the code is placed in the panel, and the panel is displayed when the event is completed.

As follows:

The code is as follows Copy Code

<asp: Panel id= "Pnlclose" runat= "Server" visible= "false"

    <script type= "Text/javascript"

       /Method One, to close the

      by refreshing the parent page   //window.top.location.reload ();

 

       //Method Two, traverse all forms that pop up on the parent page art and close

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

            item.close ();

       });

    </script>

</asp:panel>

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.