Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more: (untagged)
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

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


IN THE BODY

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

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
Posted

1 solution

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.

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900