Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

innerHTML problem with IE

Status
Not open for further replies.

bmadaras

Programmer
Jun 15, 2006
5
US
I am trying to insert a table I recieve from an AJAX call using the Dojo framework, instead of formating the returned data into a table I have the option of getting the returned data as a formated table ex:<table> ... </table>
I am trying to insert this table into the table row of another table by doing document.getElementById("row").innerHTML=returnedData;

In firefox this works no problem, but with IE I get a Unknown Runtime Error. It also does not work from within a div tag. and I have put the returned string in html and body tags and the browser renders no problem
 
Yes what BillyRay says is correct. You could insert your table into a cell but not a row. You'd have to post your code about the DIV that sould be no problem at all. the only thing I can think of is the you finding your html elements by ID and the DIV's id is not unique in the document.

-Pete
 
Sorry for the delay I had to move on and work on something else a little more time constrained. Yes setting the table into td tag instead of a tr tag worked properly. Thanks for your help and sorry for not closing this out when I got everything working.

Bryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top