wap3
09-01-2002, 02:55 PM
Hi everyone,
I have got a script which dynamicaly writes a table and its content into a <div>. Works fine in I.E. 5.5 put in Netscape 6.2 it only shows the second form input field. It show two.
Can't figure out why it doesn't want to show the first.
Here is the code which gets written into the <div>, anyone see why it won't do it ??
Thanks :thumbsup:
var calc = '<table width="218" height="0" bgcolor="#99CCFF" style="border-width: 1; border-style: solid; color: #FFFFFF" onMouseover="javascript:show_Calc()" onMouseout="javascript:hide_Calc()">';
calc += '<tr>';
calc += '<td width="175"><font size="1" color="#000000" face="Arial"> Please enter rate below e.g 11.50</font></td>';
calc += '<td width="27"></td>';
calc += '</tr>';
calc += '<tr><form name="vatCalc">';
calc += '<td width="175"><p align="center"><input type="text" name="subTot" size="20" style="border: 1 inset #000000"></td>';
calc += '<td width="27"><img src="../Images/Equals_Sign.gif" alt=":: Calculate Total ::" onCLick="calc_Total()"></td>';
calc += '</tr>';
calc += '<tr>';
calc += '<td width="175" valign="bottom"><font size="1" color="#000000" face="Arial"> This rate plus 17.5% vat is</font></td>';
calc += '<td width="27"></td>';
calc += '</tr>';
calc += '<tr>';
calc += '<td width="175" height="35"><p align="center"><input type="text" name="Total" size="20" readonly="readonly" onFocus="this.blur()" style="border: 1 inset #000000"></td>';
calc += '<td width="27"></td>';
calc += '</form></tr>';
calc += '</table>'
I have got a script which dynamicaly writes a table and its content into a <div>. Works fine in I.E. 5.5 put in Netscape 6.2 it only shows the second form input field. It show two.
Can't figure out why it doesn't want to show the first.
Here is the code which gets written into the <div>, anyone see why it won't do it ??
Thanks :thumbsup:
var calc = '<table width="218" height="0" bgcolor="#99CCFF" style="border-width: 1; border-style: solid; color: #FFFFFF" onMouseover="javascript:show_Calc()" onMouseout="javascript:hide_Calc()">';
calc += '<tr>';
calc += '<td width="175"><font size="1" color="#000000" face="Arial"> Please enter rate below e.g 11.50</font></td>';
calc += '<td width="27"></td>';
calc += '</tr>';
calc += '<tr><form name="vatCalc">';
calc += '<td width="175"><p align="center"><input type="text" name="subTot" size="20" style="border: 1 inset #000000"></td>';
calc += '<td width="27"><img src="../Images/Equals_Sign.gif" alt=":: Calculate Total ::" onCLick="calc_Total()"></td>';
calc += '</tr>';
calc += '<tr>';
calc += '<td width="175" valign="bottom"><font size="1" color="#000000" face="Arial"> This rate plus 17.5% vat is</font></td>';
calc += '<td width="27"></td>';
calc += '</tr>';
calc += '<tr>';
calc += '<td width="175" height="35"><p align="center"><input type="text" name="Total" size="20" readonly="readonly" onFocus="this.blur()" style="border: 1 inset #000000"></td>';
calc += '<td width="27"></td>';
calc += '</form></tr>';
calc += '</table>'