在IE6中使用iFrame下载的问题 [英] Issue with using iFrame for download in IE6

查看:72
本文介绍了在IE6中使用iFrame下载的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IE6中遇到问题(在IE7或Firefox中不是问题),文件保存对话框窗口没有出现。当用户点击链接时,我正在使用隐藏的iframe来提示下载。任何帮助将不胜感激。

展开 | 选择 | Wrap | 行号

解决方案

我不知道是否这将解决问题,但尝试使用window.frame [" frameName"]为其命名和访问。



我不要我不知道这是否能解决问题,但尝试使用window.frame [" frameName"]为其命名和访问。



我试图将我的iframe命名为myIFrm并将我的javascript更改为:


window.frame [" myIFrm" ;]。src = valid_req_doc


但这给了我一个javascript错误


对不起,应该是window.frames []。

I''m having an issue in IE6 (not an issue in IE7 or Firefox) where the file save dialog window isn''t appearing. I''m using a hidden iframe to prompt for a download when a user clicks a link. Any help would be appreciated.

Expand|Select|Wrap|Line Numbers

解决方案

I don''t know if this will solve the problem, but try giving it a name and access using window.frame["frameName"].


I don''t know if this will solve the problem, but try giving it a name and access using window.frame["frameName"].

I tried to name my iframe to myIFrm and changed my javascript to this:

window.frame["myIFrm"].src=valid_req_doc

but that gave me a javascript error


Sorry, that should''ve been window.frames[].


这篇关于在IE6中使用iFrame下载的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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