Sorry I should of mentioned I did try that and it does change it but when
the pdf is loaded it seems to loose the title and puts the way I called the
servlet as the window name. Is there a way in Javascript to tell when a PDF
has finished loading up.

> -----Original Message-----
> From: J.Pietschmann [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, May 28, 2002 2:56 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: FW: Window name defaulting to How we call the servlet.
> PDF Stream passed to a browser
> 
> Caroline Prefontaine wrote:
>  >>I've tried to set reponse.setHeader("Content-Disposition",
>  >>"filename=myfile.pdf"); that still doesn't work.  Is there a way in
>  >>creating the FO file to set the title of the document or of the window
> the
>  >>PDF will open into.
> 
> No.
> 
> >>function loadPdf(){
> >>var url = document.URL;
> >>pos = url.indexOf("=");
> >>var strPdfUrl = url.substring(pos+1);
> >>top.location.replace(strPdfUrl);
> >>self.focus();
> 
> Set the Window title here, using JavaScript.
> 
> J.Pietschmann
> 

Reply via email to