The following Addel function renders a new line on Mozilla but nothing
on IE 6 , yet no error is parsed neither on IE nor Mozilla. Any
explanation ? Thanks a lot.
<html>
<head>
<title>Mozill a Rich Text Editing Demo</title>
<link rel=stylesheet href="./css/Flux.css" type="text/css" />
<script language="JavaS cript" type="text/javascript">
function Addel(){
var newtr = document.create Element("tr");
var newtd = document.create Element("td");
var oTextNode = document.create TextNode("Test if text");
document.getEle mentById("table paratest").appe ndChild(newtr);
newtr.appendChi ld(newtd);
newtd.setAttrib ute("class", "imagebutto n");
newtd.setAttrib ute("height", "100px");
newtd.appendChi ld(oTextNode);
/*
var newli = document.create Element("LI");
document.body.a ppendChild(newl i);
newli.appendChi ld(oTextNode);
*/
if(navigator.ap pName == "Microsoft Internet Explorer"){
document.getEle mentById("table paratest").refr esh();
document.recalc (true);
}
}
</script>
</head>
<body onLoad="Addel() " >
<table id="tableparate st" cellpadding="0" cellspacing="0" >
<tr>
<td>
<iframe id="edit" name="testnamei e" width="600px"
allowTransparen cy="true" scrolling="no" style="border-width:0px;
margin:0px" class="normal" frameborder="0" ></iframe>
</td>
</tr>
<tr>
<td height="50px" class="imagebut ton">static test</td>
</tr>
</table>
</body>
</html>
on IE 6 , yet no error is parsed neither on IE nor Mozilla. Any
explanation ? Thanks a lot.
<html>
<head>
<title>Mozill a Rich Text Editing Demo</title>
<link rel=stylesheet href="./css/Flux.css" type="text/css" />
<script language="JavaS cript" type="text/javascript">
function Addel(){
var newtr = document.create Element("tr");
var newtd = document.create Element("td");
var oTextNode = document.create TextNode("Test if text");
document.getEle mentById("table paratest").appe ndChild(newtr);
newtr.appendChi ld(newtd);
newtd.setAttrib ute("class", "imagebutto n");
newtd.setAttrib ute("height", "100px");
newtd.appendChi ld(oTextNode);
/*
var newli = document.create Element("LI");
document.body.a ppendChild(newl i);
newli.appendChi ld(oTextNode);
*/
if(navigator.ap pName == "Microsoft Internet Explorer"){
document.getEle mentById("table paratest").refr esh();
document.recalc (true);
}
}
</script>
</head>
<body onLoad="Addel() " >
<table id="tableparate st" cellpadding="0" cellspacing="0" >
<tr>
<td>
<iframe id="edit" name="testnamei e" width="600px"
allowTransparen cy="true" scrolling="no" style="border-width:0px;
margin:0px" class="normal" frameborder="0" ></iframe>
</td>
</tr>
<tr>
<td height="50px" class="imagebut ton">static test</td>
</tr>
</table>
</body>
</html>
Comment