• Post Reply Bookmark Topic Watch Topic
  • New Topic

Netscape  RSS feed

 
kevin gutch
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
 
Nabha Panat
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 !!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!