Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Houston, TX
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    (html, javascript, & IE) Problem drawing images with outerHTML.

    I am having a problem drawing images with outerHTML. Apperantly this is a known issue with IE but this is all I could find on the subject:
    Google Groups: Missing Images
    I coulden't make sense of the workaround they suggested nor make it work.
    Basicly I have a number of items but I do not know how many at design time (and the number changes through out the session) so I am bulding a table (yes, it is tabular data) dynamicly from a hidden frame and outerHTML'ing it to the main form. At first the images will not show until you do something else that will cause the screen to redraw (this is a non-refreshing site).

    any help will be greatly appreciated,
    Michael

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    Houston, TX
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm so good
    OK here is what I did to fix it. on the main form I added an empty div with a z-index of -1. Then I wrote a html page with this inside:
    Code:
    parent.frames[0].document.getElementById('IEimageWorkaround').style.background = '#ffffff';
    parent.frames[0].document.getElementById('IEimageWorkaround').style.background = '';
    so I run the script that builds the item list table and outerHTML's it, then I location.href to the workaround page and it works now!

    (I am getting a javascript "object required" error though on that first line)

    Michael


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •