You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Caroline Prefontaine <ca...@empire.ca> on 2002/05/28 20:59:33 UTC
RE: FW: Window name defaulting to How we call the servlet. PDF St
ream passed to a browser
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:j3322ptm@yahoo.de]
> Sent: Tuesday, May 28, 2002 2:56 PM
> To: fop-user@xml.apache.org
> 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
>
Re: FW: Window name defaulting to How we call the servlet. PDF St
ream passed to a browser
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Caroline Prefontaine wrote:
> 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.
Dunno. Ask on a list dealing with JavaScript and/or your
browser.
J.Pietschmann