|
-
Jul 26th, 2002, 08:47 AM
#1
Thread Starter
Frenzied Member
(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
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Jul 26th, 2002, 09:10 AM
#2
Thread Starter
Frenzied Member
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
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|