Joerg Heinicke <[EMAIL PROTECTED]> wrote on 06/30/2004 05:07:09 PM:
> On 30.06.2004 21:17, Leona Slepetis wrote:
>
> > I have a problem with Cocoon 2.1 that someone may have seen before.
> >
> > I am trying to launch a window containing a pdf file, using the
JavaScript
> > Window.open() method.
>
> > When I run this, I get an IE error saying that the site can't be found.
>
> > If I use the same pipeline with mime-type="image/gif" and an image
file,
> > the JavaScript code works and opens a new window.
> >
> > Does anyone know what is happening here? I know that I am getting to
the
> > same place in the sitemap by calling the URL directly or through the
open()
> > function, It seems that certain mime types are not being handed off to
the
> > new window correctly.
>
> Sounds strange but therefore you have logfiles. Set the log level to
> debug, and compare the requests when opening it via JS and typing it
> directly in core.log.
>
> Joerg
The problem here is that I want to use the sitemap to resolve the absolute
path, rather than putting it directly in the JS call.
So, in my sitemap, I have:
<map:match type="regexp" pattern="files/daily_20040718.pdf">
<map:read mime-type="application/pdf" src="file://Z:/daily_20040718.pdf"
/>
</map:match>
which causes the IE "Internet Explorer cannot download..." error. If I
change the mime-type to "image/gif" and use a .gif file, all is well. I
looked at the logs and see no errors, so I am wondering if it has something
to do with the reader for PDF, or perhaps the Cocoon configuation. This
code worked in Cocoon2.0.
Thanks again for any help.
Regards,
Leona
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]