|
|
| Hi, I have a problem with IE and dom I want to add a row to a table I am looking for some javascript html parser |
| Using xhr to fetch a document pretty much does that |
| Hmm no I have a quit speicific problem I have html returned from xhr. but this html is a <tr>...</tr> In IE we cannot use innerHTML of a table because it is readonly |
| Why not just copy the DOMNode from the XHR resposne object? |
| So to append the new row I need to convert the text into a dom structure and append it every piece to the table |
| if you're using XHR then, assuming you've set it up right, the response object *is* a DOM object |
| I am using json So resopnseText no responseXML Without xhr is possible? I have tried div.innerHTML = trText; doens't work Ravael, is ok if I use Microsoft.XMLDOM instead of responseXML? |
| it doesnt sound like that will work in browsers other than ie |
| I won't use this technique in other browsers I am using "table.appendChild(xmlDoc.documentElement);" but I don't see the new row rendered |