HighDots Forums  

Dynamic addition in IE of images does not work

alt.html.dhtml alt.html.dhtml


Discuss Dynamic addition in IE of images does not work in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
daveg
 
Posts: n/a

Default Dynamic addition in IE of images does not work - 10-18-2005 , 05:06 PM






I have a javascript/DHTML app that was first developed under Firefox.

The problematic area is a dynamic pop-up image selector.

During page load I have code that appends two <div> sections to the
body.

The second div gets a table with one row and some images added to it.

When the user clicks the code will add rows to the table, and each row
gets three cells, and each cell gets an image... then I set the div's
display: block and it shows.

Now this all works great in FF, I see my 3x3 grid of images.

In IE I get the div with the buttons and no images and no layout space
allocated for them.

Using the IE (free trial of the commercial) DOM inspector, it seems
that the DOM has been modified correctly... the table and rows and
cells and images are all present, but IE seems to have a width and
height of 0 for those images... and nothing I do seems to make a
difference.

I tried switching from createElement/appendChild pattern to innerHTML
pattern for the images, but to no avail.

Can anybody offer any clues?

This fails across multiple machines with IE6, and works across machines
on FF.

(IE6 on XP/SP2, all critical patches and most optional patches are
applied)

Thanks for any help,
Dave Goldstein


Reply With Quote
  #2  
Old   
Jim Michaels
 
Posts: n/a

Default Re: Dynamic addition in IE of images does not work - 04-10-2006 , 07:34 PM







"daveg" <davegoldstein (AT) adelphia (DOT) net> wrote

Quote:
I have a javascript/DHTML app that was first developed under Firefox.

The problematic area is a dynamic pop-up image selector.

During page load I have code that appends two <div> sections to the
body.

The second div gets a table with one row and some images added to it.

When the user clicks the code will add rows to the table, and each row
gets three cells, and each cell gets an image... then I set the div's
display: block and it shows.

Now this all works great in FF, I see my 3x3 grid of images.

In IE I get the div with the buttons and no images and no layout space
allocated for them.

Using the IE (free trial of the commercial) DOM inspector, it seems
that the DOM has been modified correctly... the table and rows and
cells and images are all present, but IE seems to have a width and
height of 0 for those images... and nothing I do seems to make a
difference.

I tried switching from createElement/appendChild pattern to innerHTML
pattern for the images, but to no avail.
IE6 also has outerHTML if it helps any. it is a non-cross-browser feature
that lets you replace the parent tag as well.

Quote:
Can anybody offer any clues?

This fails across multiple machines with IE6, and works across machines
on FF.

(IE6 on XP/SP2, all critical patches and most optional patches are
applied)

Thanks for any help,
Dave Goldstein




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.