Hello,
I have added a jqxWindow to my page.
function windowScannedItems_init() { $("#windowScannedItems").jqxWindow({ theme: theme, isModal: true, showCollapseButton: false, height: 600, width: 1100, maxWidth: 1100, autoOpen: false, modalOpacity: 0.5, resizable: false });};
and set content to iFrame to open another page inside this window
$("#windowScannedItems").jqxWindow('setContent', '<iframe src="ApproverScannedItems.aspx?SurgeryId=' + row.SurgeryId + '" width="100%" height="100%"></iframe>');$('#windowScannedItems').jqxWindow('open');
there is a button in the page opened in the window
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Approver Scanned Items</title> </head><body> <form id="frm" runat="server"> <center> <div style="margin-bottom: 5px;margin-top: 5px"> <div id="gridScanedItems"></div> </div> <input type="button" value="Approve" id="buttonApprove" /> </center> </form></body></html>
this button used to do some logic
I need to make this button close the window after applying the logic.
in other words, How can I access the element (window) in a parent page from a button inside its iFrame?