我有一个简单的设置http://denishoctor.me/readertest.html(下面的代码)。该按钮在嵌入的 pdf 上打开一个对话框。除了 IE6/7/8 之外,这在所有方面都很好。
有谁知道如何阻止这个?
谢谢,丹尼斯
<button type="button">Click Me</button>
<iframe id="iFrameResponse" style="margin-left:250px;height:500px;width:100%" src="http://knowwheretheygo.org/media//static/content/sample.pdf"></iframe>
<div id="InformationDialog" style="display: none;">This is my info</div>
<script type="text/javascript">
$(document).ready(function() {
$( "#InformationDialog" ).dialog( {
title: "Information",
autoOpen: false,
hide: "slide",
show: "slide",
width: 225,
position: [100,125],
height: 400
} );
$("button").click(function() {
$("#InformationDialog").dialog('open'); return false;
});
});
</script>
更新:我找到了http://groups.google.com/group/jquery-ui/browse_thread/thread/66c7d2d31feedea9?fwc=1。WHich 谈论http://brandonaaron.net/code/bgiframe/docs/。如前所述,任何人都知道需要进行哪些更改才能使其在 IE 中为 PDF 工作?