Hi,
I am a newbie to HTML.
I need to display a table in a web page.
Each row of a HTML table is a row in a SNMP table.
The index to the SNMP table is incremented by the </tr> tag
I have a requirement to display 2 SNMP rows as 1 HTML row.
My HTML code looks like
<tr id=”row3″>
<td id=”t.6″ style=’font-family:”courier New”; font-size:15px; font-weight:bold;’>$$INDEX0$$</td>
<td id=”t.7″>$$REFID9900$$</td>
<td id=”t.8″>$$REFID9901$$</td>
<td style=”display:none”> </tr> </td>
<td id=”t.9″>$$REFID9900$$</td>
<td id=”t.10″>$$REFID9901$$</td>
</tr>
<tr id=”row4″>
<td id=”t.11″ style=’font-family:”courier New”; font-size:15px; font-weight:bold;’>$$INDEX0$$</td>
<td id=”t.12″>$$REFID9900$$</td>
<td id=”t.13″>$$REFID9901$$</td>
<td style=”display:none”> </tr> </td>
<td id=”t.14″>$$REFID9900$$</td>
<td id=”t.15″>$$REFID9901$$</td>
</tr>
<tr id=”row5″>
<td id=”t.16″ style=’font-family:”courier New”; font-size:15px; font-weight:bold;’>$$INDEX0$$</td>
<td id=”t.17″>$$REFID9900$$</td>
<td id=”t.18″>$$REFID9901$$</td>
<td style=”display:none”> </tr> </td>
<td id=”t.19″>$$REFID9900$$</td>
<td id=”t.20″>$$REFID9901$$</td>
</tr>
<tr id=”row6″>
<td id=”t.21″ style=’font-family:”courier New”; font-size:15px; font-weight:bold;’>$$INDEX0$$</td>
<td id=”t.22″>$$REFID9900$$</td>
<td id=”t.23″>$$REFID9901$$</td>
<td style=”display:none”> </tr> </td>
<td id=”t.24″>$$REFID9900$$</td>
<td id=”t.25″>$$REFID9901$$</td>
</tr>
Please note that I have added the following line, only to increment the SNMP index.
<td style=”display:none”> </tr> </td>
With the above code, the page is displayed as I expected, in IE 8. Each row is displayed as follows.
$$INDEX0$$ $$REFID9900$$ $$REFID9901$$ $$REFID9900$$ $$REFID9901$$
But, in Firefox and Chrome the row is displayed as follows.
$$INDEX0$$ $$REFID9900$$ $$REFID9901$$
$$REFID9900$$ $$REFID9901$$
I think there is browser incompatability coming in to play here.
Any help to overcome this problem and make the code browser independant is highly appreciated.
Thanks.