Notes on using $.dialog
The first step: import js
<script type="text/javascript" src="artDialog/jquery.artDialog.js?skin=idialog"></script> <script type="text/javascript" src="artDialog/plugins/iframeTools.js"></script>
Step 2: Open the grammar
$.dialog.open(url, { padding : 0, title : false, width : 660, lock : true, close : function() {//The operation after closing the popup var argsvalue = $.dialog.data('argsname');// Read the data of the pop-up page // Do other operations according to business needs //For example: refresh the current page location.reload(); } }, true);
Step 3: Close the grammar
Call directly or execute $.dialog.close() in a custom function; it can be closed
Step 4: Pass values to the parent page
Use the $.dialog.data('argsname',value); structure before executing the third step;