JQuery UI Dialog over PDF
This is more than likely an Adobe issue where it thinks it should be in front all the time no matter what, however it is very annoying that you can't open a dialog over a PDF
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/smoothness/jquery-ui.css">
<!-- This is more than likely an Adobe issue where it thinks it should be in the front all the time no matter what however it is very annoying that you can't open a dialog over a PDF-->
<body>
<div id='ClickMe'>Click here!</div>
<br/>
<div>This is more than likely an Adobe issue where it thinks it should be in front all the time no matter what, however it is very annoying that you can't open a dialog over a PDF. Click on the 'Click here!' text above to see this issue occur. Interesting enough if you click the Discuss button in JSFiddle it does the same thing.</div>
<br/>
<iframe src="http://www.istruzione.it/esame_di_stato/201617/Italiano/Ordinaria/P000_ORD17.pdf" style="width:100%; height:700px;" frameborder="1"></iframe>
</body>
JavaScript
var $Dialog_div;
function fnOpenDialog() {
$Dialog_div = $('<div id=\'ThisDialog\'>Hello</div>').prependTo('body');
$Dialog_div = $('#ThisDialog').dialog({
autoOpen: true,
draggable: true,
resizable: true,
title: 'Dialog',
modal: true,
stack: true,
height: ($(window).height() * 0.95),
width: ($(window).width() * 0.9),
buttons: {
'OK': function() {
$Dialog_div.dialog('close');
}
}
});
}
$('#ClickMe').click(fnOpenDialog);