Image

Imagemdb_uk wrote in Imagejavascript

Isn't IE supposed to work when you use a tbody?

I have a table containing names and contact details for customers.  I have a <tbody> tag after my <table> tag, and a </tbody> tag before my </table> tag, which I thought meant that IE could then work with the table.  In any event, one of my Javascript functions is supposed to add two rows and then populate them.

I won't paste the code unless people really want to see it, because it is incredibly long, but I basically use createElement to produce many <span> elements, four <td> elements and two <tr> elements.  I then use appendChild to place the <span> elements into the <td> elements, the <td> elements into the <tr> elements, and the <tr> elements into my existing <table>.

In Firefox this works fine.  In IE, as soon as I click the button which should execute the function, I get an 'error on page' message in the Status bar.  I have the IE developer's toolbar installed, but it seems to not have any Javascript debugging functions like the Firefox one does.

Does anyone have any ideas?