Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 48419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:16:37+00:00 2026-05-10T16:16:37+00:00

I have a page which is largely created by DOM script, which generates a

  • 0

I have a page which is largely created by DOM script, which generates a table of images (normal img elements) from several webcams (helping out a friend with a pet boarding and my HTML/DOM is a bit rusty).

It works fine in FF3 or Chrome, but not in IE7, In fact, the whole table is not visible in IE (but the body background-color is applied).

Looking at the page in IE, there are no script errors, the CSS appears to be applied OK, and the DOM appears to show all the cells and rows in the table, which are all generated.

Using the IE Developer Toolbar, running the Image report even shows the images (even though they don’t appear in the table and there is no evidence of the table in the page as rendered – even the text in the cells isn’t rendered)

In looking at the img elements and using the trace style feature, at one time, I saw that the img elements all had display : none, and it said inline style, but there’s nothing in my code or stylesheet which does this. That problem appears to have gone away as I started to add explicit entries for every table element in my stylesheet.

Where to start?

body { background-color : gray ; color : white ; margin : 0 ; font-family : Verdana, 'lucida console', arial, sans-serif ; } #CameraPreviewParent { text-align : center ; width : 100% ; } #CameraTable { text-align : center ; width : 100% ; } #CameraLiveParent { text-align : center ; margin : 50px ; } #CameraLiveHeading { color : white ; } td.CameraCell { text-align : center ; } img.CameraImage { border : none ; } a:link, a:visited, a:active, a:hover { text-decoration : none ; color : inherit ; } table#CameraTable { color : white ; background-color : gray ; } td.CameraCell { color : white ; background-color : gray ; } 

Removing the stylesheet completely has no effect.

Here’s the code of the page after generation (I apologize for the formatting from the DOM toolbar – I’ve tried to put in some linefeeds to make it easier to read):

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML Strict//EN'><META http-equiv='Content-Type' content='text/html; charset=windows-1252'> <HTML> <HEAD> <TITLE></TITLE> <SCRIPT src='cameras.js' type='text/javascript'> </SCRIPT> <SCRIPT type='text/javascript'> function CallOnLoad() { document.title = PreviewPageTitle ;         BuildPreview(document.getElementById('CameraPreviewParent')) ; } </SCRIPT> </HEAD> <BODY> <!-- Any HTML can go here to modify page content/layout --> <DIV id='CameraPreviewParent'> <TABLE id='CameraTable' class='CameraTable'> <TR id='CameraRow0' class='CameraRow'> <TD id='CameraCell0' class='CameraCell'><A id='CameraNameLink0' href='http://192.168.4.3:801' class='CameraNameLink'>Luxury Suite 1 (1)</A><BR /><A id='CameraLink0' href='camlive.html?camIndex=0' class='CameraLink'><IMG id='CameraImage0' title='Click For Live Video from Luxury Suite 1 (1)' height='0' alt='Click For Live Video from Luxury Suite 1 (1)' src='http://192.168.4.3:801/IMAGE.JPG' width='0' class='CameraImage' /></A></TD> <TD id='CameraCell1' class='CameraCell'><A id='CameraNameLink1' href='http://192.168.4.3:802' class='CameraNameLink'>Luxury Suite 2 (2)</A><BR /><A id='CameraLink1' href='camlive.html?camIndex=1' class='CameraLink'><IMG id='CameraImage1' title='Click For Live Video from Luxury Suite 2 (2)' height='0' alt='Click For Live Video from Luxury Suite 2 (2)' src='http://192.168.4.3:802/IMAGE.JPG' width='0' class='CameraImage' /></A></TD> </TR> </TABLE> </DIV><!-- This element is used to hold the preview --> <!-- Any HTML can go here to modify page content/layout --> </BODY> </HTML> 

Apparently the DOM code which inserts with width and height of the images is not working right in IE:

var PhotoWidth = 320 ; var PhotoHeight = 240 ;  var image = document.createElement('img') ; image.setAttribute('id', 'CameraImage' + camIndex) ; image.setAttribute('class', 'CameraImage') ; image.setAttribute('src', thisCam.ImageURL()) ; image.setAttribute('width', PhotoWidth) ; image.setAttribute('height', PhotoHeight) ; image.setAttribute('alt', thisCam.PreviewAction()) ; image.setAttribute('title', thisCam.PreviewAction()) ; link.appendChild(image) ; 

The response about the require TBODY element when dynamically building tables appears to be the entire problem – this appears to even set the image width and height to 0 in the DOM!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:16:38+00:00Added an answer on May 10, 2026 at 4:16 pm

    One gotcha I found is that in IE, if you dynamically create tables using document.createElement(), you need table(tbody(tr(tds))). Without a tbody, the table will not show.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which displays lots of images from different remote servers. http://example.com/img/email_star0.png'
I have a page which requests information from several apis, some of them with
I have page which is redirected from htaccess. now I can pass the German
I have a page which displays dynamic flash content from issuu.com. I need to
I have a page which tries to get the value from another server using
I have a page which requires retrieving results from a service, and that takes
I have a page which generates a html code in a text box. When
I have a page which has a GridView on it, which is populated from
I have jsp page which diplays a huge data in table format in the
I have a set of largely static pages which I'd be happy to page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.