Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

innerHtml not working in Mozilla

 
Shreyash Thakre
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am having the following code in my js file for innerHtml(for dynamically adding rows on jsp page)...but it is not working in Mozilla, it works fine IE.

I faced the same problem everywhere were I used innerHtml, so can anyone please tell me the other way out for this, so that it works fine in Mozilla..

var len = datamain3.rows.length;
var rowcnt = datamain3.insertRow(len);
.
.
.
var c0 = rowcnt.insertCell();
.
.


Thanks & Regards
Shreyash Thakre
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you show us the version that fails.

What problem are you having with insertRow() and insertCell()?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic