image from DHTML inner html won't display after opening attachment RRS feed

  • Question

  • I am using DHTML & javascript to replace the innerHtml of a document while preparing large PDF files for download by the user who is running IE 6 on XP sp2.  When the file is ready, the inner html is set back to the original value.  The dynamically inserted inner html has a gif in it. (<img> tag).


    The problem is that once a user opens the file attachment from the web-page, the image from the dynamically inserted html will no longer display.  It's not like I get the image not found box like when I have a bad reference, rather the image is just not there.  I only see the background of the html page that I dynamically inserted.  The original page display fine, it's only on the dynamic replacement page.


    The file is sent to the user as an attachment, so it is not opened inline.  And it is not using the plug-in.   Content-Disposition is set to attachment.  If the user gets the file download dialogue and cancels instead of opening or saving the file, then the dynamic html will continue display correctly with the image.


    Does anyone know how to fix this?  I tried adding javascript to reload the image, or to change the z-index of the image but this has no effect.

    Tuesday, April 3, 2007 6:20 PM

All replies

  • I did a little more testing, and it is not limited to PDF downloads, no matter what file is forced as download, the image will not display once an attachment is opened.
    Tuesday, April 10, 2007 12:45 PM