Search found 2 matches

by ryan_mate
Wed Apr 18, 2007 12:42 am
Forum: Javascript
Topic: works on mozzila, not on IE7
Replies: 13
Views: 2410

You can't seem to set the innerHTML of a table element in IE. A simple solution is: instead of trying to set the innerHTML to a string which contains the code for the table rows, you could just try adding a string with the entire code for the actual table, and add it to a div: var house = document.c...
by ryan_mate
Wed Apr 18, 2007 12:20 am
Forum: Javascript
Topic: Javascript - insert Image/HTML tags
Replies: 4
Views: 3945

Thanks for the code, it served me well. In regards to your actual question about pasting HTML if it were an editable DIV.. rather than using: sel.text = '<span>Hello</span>'; use this: sel.pasteHTML('<span>Hello</span>'); This way, the HTML will not display as text, it will be treated as HTML within...