PDA

View Full Version : IE gives problem


rameshmit
12-09-2008, 11:01 AM
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.

batterj2
12-12-2008, 08:21 AM
You've missed a </td>:

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

murrayd77
12-12-2008, 10:15 AM
Yes, IE will not support innerHTML. This is a bug that Micorsoft confirms. They also, showed an example to over this solution. You can try that and hope that gives you solution to your issue; http://support.microsoft.com/kb/276228

-- Dave.