View Full Version : IE gives problem

12-09-2008, 06:29 PM

I have a jsp code works fine in firefox bot not in IE.

<table> <td >
<div id="first" ></div>

I have replaced the div portion using ajax:

var urlvalue = "first.jsp?select="+select";


corresponding portion of first.jsp is :

<tr ><td class ="text_black" nowrap><%= val%><td><input type="checkbox" name="List" value="<%= val%>"></td></tr>

Problem is: All the rows are get printed in single line in IE while firefox prints one by one neatly. I heard IE doesnot support innerHtml method.
please any body give solution that my code works well in both browsers.

12-10-2008, 08:28 AM
Do you expect your final html code like

<table> <td >
<div id="first" >
<tr ><td class ="text_black" nowrap>{some value}<td>
<input type="checkbox" name="List" value="<%= val%>">
</td></table> ?

If, it's pretty invalid(missing a </td> there. You cant nest a <tr> inside a table like that). Validate your code (http://validator.w3.org/#validate_by_input) and fix all errors in your markup first.