htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: WYSIWYG Forums: WYSIWYG Editor Discussion:
table.innerHTML - Unknown runtime error (error in IE - Firefox works)


 


FRG
New User

May 5, 2006, 8:32 AM

Post #1 of 2 (14852 views)
Shortcut
table.innerHTML - Unknown runtime error (error in IE - Firefox works) Can't Post

I write such code, as a result - javascript error.

TableOperations.prototype.dialogTableColors = function() {

var table = this.getClosest("table");
HTML = "<tr><td>111</td></tr>";
table.innerHTML=HTML;
editor.forceRedraw();
editor.focusEditor();

}

That in this code not so?



(This post was edited by FRG on May 5, 2006, 8:47 AM)


jfisher
New User

Aug 2, 2006, 3:29 PM

Post #2 of 2 (14198 views)
Shortcut
Re: [FRG] table.innerHTML - Unknown runtime error (error in IE - Firefox works) [In reply to] Can't Post

May be too late to help, but I just got on this board this afternoon. The key to dynamic tables in IE is the TBODY, so try this:


Code
TableOperations.prototype.dialogTableColors = function() { 

var table = this.getClosest("table");
HTML = "<tbody><tr><td>111</td></tr></tbody>";
table.innerHTML=HTML;
editor.forceRedraw();
editor.focusEditor();

}


J

 
 
 


Search for (options)