IE浏览器中与Pdf相关的问题 [英] Problem Related to Pdf In IE Browser

查看:206
本文介绍了IE浏览器中与Pdf相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IE浏览器窗口中打开.pdf文件。



当我尝试在退出时使用popup.close关闭浏览器



按钮。它正在给我许可拒绝错误。



我改变链接到谷歌时工作得很好,但是当我改变了b $ b b / b
进行更改时回到pdf文档它只是给我
IE中的
错误。

i am opening .pdf document inside a IE browser window.

When i tried to close the browser using popup.close on logout

button .It is giving me permission denied error.

It works just fine when I change the link to Google, but when I

make the change back to the pdf document it just giving me
error in IE.

function js_ClosePopUps() {
    if (popups.length == 0) return;
    try
    {
        for (i = 0; i < popups.length; i++) {
            popups[i].close();
        }
    }
    catch(ex)
    {
        alert(popups.name);
        alert('An error has occurred: '+ex.message)
    }
}



这是我用来关闭IE中弹出窗口的代码。



请解决此问题。


This is the code which i am using for closing the popup window in IE.

Please resolve this problem.

推荐答案

首先,您不应该假设浏览器是IE,并且您不应该假设客户端的浏览器支持PDF 。尽管在Web上广泛使用PDF文件,但这不是任何W3标准的一部分,并且不支持所有浏览器和所有平台。 (例如,我在所有Windows系统中消灭了与Adobe Acrobat相关的任何内容,在我使用的任何浏览器中都没有PDF支持,现在感觉好多了。)



检查相关对象的文件系统权限,还要记住HTTP服务器在沙盒环境中执行Web应用程序,只允许访问站点根目录下的服务器端主机的文件系统对象。



-SA
First of all, you should not assume that the browser is IE, and you should not assume that the client's browser supports PDF. Despite of the wide use of PDF files on the Web, this is not a part of any W3 standards and not supported on all browsers and all platforms. (I, for example, exterminated anything related to Adobe Acrobat from all my Windows systems, don't have PDF support in any of the browsers I use, and now feel much better.)

Check up you file system permission on the object in question, but also remember that HTTP server executes Web application in sandboxed environment allowing the access only to those server-side host's file system objects under the root directory of your site.

—SA


这篇关于IE浏览器中与Pdf相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆