This is the piece of code I have written:
<html>
<head>
<script type="text/javascript" src="jquery-min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var rowIndex = ["A","B","C","D","E","F","G","H","I","J","K","L","N"];
$.get("crosswords.xml",{},function(xml){
$('crossword',xml).each(function(i) {
if("1" == $(this).find("number").text())
{
$('body').append("<table border=1>");
for(var i = 0;i < rowIndex.length;i++)
{
$('body').append("<tr height=25>");
for(var j = 0;j < 13;j++)
{
k = (j+1);
var cellname = rowIndex[i] + k;
var cell = $(this).find(cellname).text();
if(cell == "b")
{
$('body').append("<td width=25> </td> ");
}
else if(cell == "c")
{
$('body').append("<td width=25 bgcolor=black> </td> ");
}
else
{
$('body').append("<td width=25>" + cell + "</td> ");
}
}
$('body').append("</tr> ");
}
$('body').append("</table>");
}
});
alert(A);
});
})
</script>
</head>
<body>
</body>
</html>
In Firefox it is showing as a single column table. In IE7 table is not showing at all. What would be the problem. jQuery version is 1.4