IE6 is trying to open a jpg file as an xml file

G

Guest

When I try to open a jpg file using a javascript's window.open command
(inside a virtual directory), IE6 is trying to open the file as an XML file.

The jpg file has its Comment field (metadata) filled with text in an xml
format, for example:

<?xml version="1.0" ?>
<photo>
<id>123</id>
<description>soccer match</description>
</photo>

The error doesn't appear if I remove this metadata comment, and neither
appears if I drag and drop the jpg file on Windows Explorer to IE6.

Besides, the jpg file is well conformed (including metadata), no error
apppears when I open the image with Photoshop.

Why IE6 is having this behaviour?

Thanks in advance,
Ray
 
G

Guest

Forgot to mention that this happens in a Windows 2003 Server with IIS 6, and
does not happen on Windows 2000 and IIS 5.

Regards,
Ray
 
G

Guest

Mmm, I don't use an IMG Tag to display the jpg, just open it in a new window
using javascript's window.open command.

Regards,
Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top