Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unknown RunTime Error when I try to modify innerHTML inside IE

 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


where anyId is a table body id.
I want to modify the innerHTML for my table body

but in Internet Explorer it is giving Unknown Runtime Error
 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to manipulate table data using innerHTML in IE.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You really should not be using innerHTML to manipulate a table. You should be looking at insertRow() and insertCell.

http://www.w3schools.com/htmldom/met_tablerow_insertcell.asp

Eric
 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case setAttribute is not working in IE.


onDblClick I want to remove that row.
[ December 28, 2005: Message edited by: Hemant Agarwal ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic