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> |