打开Java窗口-Explorer v Firefox冲突 [英] Opening Java Window - Explorer v Firefox Conflict

查看:66
本文介绍了打开Java窗口-Explorer v Firefox冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

绅士:

我刚刚将Java窗口添加到了显示放大图形的ASP网页中.这在资源管理器中可以完美运行,但是在Firefox中却可以完成一些不寻常的工作. Firefox打开一个用户请求界面,该界面询问以下内容:

Firefox应该使用此文件做什么:

打开方式... ...等

保存

>这两个选项都不会像在资源管理器中那样在Java窗口中打开新图形.以下是我用来打开窗口并获取图形的代码:

标题中的
<%-大的Windows脚本-%&
& lt;脚本类型="text/javascript"& gt;
函数OpenLargeWindow1(图像)
{
window.open(广告/" +图像,",宽度= 760,height = 300,top = 200,left = 200,scrollbars = 0).focus();
}
& lt;/script& gt;


在体内

& lt; a href ="javascript:OpenLargeWindow1(" gears33.png)"& gt;
& lt:asp:Image ID ="Image18" runat =服务器" ImageUrl =〜/Ads/plus_sign.png"/& gt;& lt;/a& gt;

Firefox是否需要专有代码,或者选择过程中将使用哪种选项?窗口中的图形(如果有)?或???.

对此难题的任何见解都将受到赞赏.

谢谢Pat

Gentleman:

I just added a Java window to an ASP web page which shows an enlarged graphic. This works perfectly in Explorer, however it does something unusual in Firefox. Firefox opens a user request interface which asks the following:

What should Firefox do with this file:

Open With ... etc
or
Save

Neither option will open the new graphic in the Java window as it does in Explorer. Following is the code that I am using to open call the Window and get the graphic:

IN THE HEADER

&lt;%--Large WIndow Scripts --%&gt;
&lt;script type="text/javascript"&gt;
function OpenLargeWindow1(image)
{
window.open("Ads/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();
}
&lt;/script&gt;


IN THE BODY

&lt;a href="javascript:OpenLargeWindow1(''gears33.png'')"&gt;
&lt;asp:Image ID="Image18" runat="server" ImageUrl="~/Ads/plus_sign.png" /&gt;&lt;/a&gt;

Does Firefox require a proprietary code or what option in the select process will put the graphic in the window if any? OR ???.

Any insight to this dilemma is appreciated.

Thank You, Pat

推荐答案

Java问题,但是Javascript问题,更适用于Web开发论坛.

我相信Firefox下载某些文件类型而不是显示它们,对于Internet Explorer,pdf和png也可以说相同.例如.我建议创建一个带有"get"变量的页面,然后将其显示在页面上.例如. javascript:OpenLargeWindow1(''showimage.aspx?img=gears33.png'')以避免浏览器不一致.

This is not a Java question but a Javascript question and is more applicable to the Web Development forum.

I believe Firefox downloads some file types rather than showing them and the same can be said for Internet Explorer, pdf''s and png''s for example. I would suggest creating a page which takes a ''get'' variable which would then display the image on the page. Eg. javascript:OpenLargeWindow1(''showimage.aspx?img=gears33.png'') to avoid browser inconsistencies.


这篇关于打开Java窗口-Explorer v Firefox冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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