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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
Back
Top