rameshmit
12-09-2008, 05:29 PM
Hi,
I have a jsp code works fine in firefox bot not in IE.
<table> <td >
<div id="first" ></div>
</td></table>
I have replaced the div portion using ajax:
var urlvalue = "first.jsp?select="+select";
document.getElementById("first").innerHTML=xmlhttp.responseText;
and
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.
I have a jsp code works fine in firefox bot not in IE.
<table> <td >
<div id="first" ></div>
</td></table>
I have replaced the div portion using ajax:
var urlvalue = "first.jsp?select="+select";
document.getElementById("first").innerHTML=xmlhttp.responseText;
and
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.