0

I have a dynamic table which works in firefox 4+ and chrome but does not display the table contents in Internet Explorer. What could be the problem? Here is my demo

Firefox result

enter image description here

Internet Explorer 8 result

enter image description here

Please help somebody. This is the 2nd time I am posting this question. Thanks

kapa
  • 77,694
  • 21
  • 158
  • 175
  • Works on IE9 for me. Btw, why are you posting this question again? What happened to the first one? – kapa Jul 08 '11 at 08:56
  • would you please explain little bit more..what you are expecting and what not working in IE... – Vivek Jul 08 '11 at 08:57
  • Can you copy your HTML code also? – Saanch Jul 08 '11 at 08:59
  • @gvl Click the DEMO link – mplungjan Jul 08 '11 at 09:17
  • Why `appendTo('#compareContent')` and not `html('#compareContent')` – mplungjan Jul 08 '11 at 09:18
  • in IE8 I get 0 here `alert($(xml).find('TagResult').length)` – mplungjan Jul 08 '11 at 09:25
  • @mplungjan: You are right, even i get `0` for `alert($(xml).find('TagResult').length)` in IE but `17` in firefox. What could be the problem. Also when i do `html('#compareContent')` it does not even displays the table –  Jul 08 '11 at 09:31
  • @bazmegakapa: In the previous version of this question, I was suggested to add `tbody` since there is compatability issues with IE and led me to [this](http://stackoverflow.com/questions/812693/cant-dynamically-add-rows-to-a-table-in-ie) url. After this i added `` to my code but still it did not work, and also I was getting no reply on it from past 2 days, so i deleted the question and came up with this. Please help :) –  Jul 08 '11 at 09:36
  • @vivek: The code is in the `demo` link –  Jul 08 '11 at 09:40

1 Answers1

1

It's problem with regard to the xml as mplungjan quoted he gets 0 in IE

So Try this var xml=$.parseXML(dummy1);

The Demo

AabinGunz
  • 12,109
  • 54
  • 146
  • 218
  • But normally xml=$('<.....>') also should work :( See this one - still does not run in IE8 http://jsfiddle.net/mplungjan/fdL3B/ – mplungjan Jul 08 '11 at 11:09