• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Netscape

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the following code to allow a user to download a document created with some input they specify. Everything works well in IE 5.0+ and Opera. However, the problem arises with Netscape. I believe I have isolated the issue. Just not sure how to work around it.
Whenever a user decides they want to download the document they
press a button. This button HREF's a .jsp with the following code:
<body onload='download.submit()'>
[The reason ?I do this is so I can have a "Please Wait" page.
This code calls a servlet that processes the document and returns it to the user by:
respond.setContentType("text/mdf");
PrintWriter toClient = respond.getWriter();
respond.setHeader("Content-Disposition", "attachment; filename=\"" +
theFileName + "." +theExtension+ "\"");
Netscape does not perform the onLoad. So the servlet is never called. It must be that Netscape loads the page in a different order so that it can not determine what the onLoad is referencing when the page is loaded.
Does anyone have anmy solutions. I have tried the JSP:Forward command but it then does not load the "Please Wait page.
Any solutions?
------------------
Kevin R. Gutch
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
There could be one reason why your page is not getting displayed in Netscape.
Have u included the <FORM></FORM> tags in your HTML code?? Unless and until these tags r there in the code, Netscape won't display the page !!
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic