When using the following to open a dialog. The page in src has a "Cancel" button, but I can't for the life of me figure out the code needed to close the dialog from that button. I've tried everything I could find via searches and still haven't figured it out. Can anyone point me in the right direction?
- var iframesource = '<div width="100%" id="JQueryPopWin" name="JQueryPopWin" class="JQueryPopWin"><iframe width="100%" ' +
'height="100%" ' +
'frameborder="0" ' +
'name="'+winType+'" id="'+winType+'" class="'+winType+'" ' +
'allowtransparencty="true" ' +
'style="background-color: transparent;" ' +
'src="f?p='+apex_app+':'+pageNum+':'+apex_session+'::NO:'+pageNum+':'+itemNames+':'+itemValues+':"></iframe></div>';
var $dialog = $(iframesource)
.dialog({
autoOpen: false,
title: winType,
position: 'center',
width: 800,
height: 660,
modal: true
});
$dialog.dialog('open');