IE replaceWith issue

IE replaceWith issue

Hi,

    During the last month i understand jQuery a lot better and i have my codes working great in every browser but IE. When i tell it to replace an ID with different content then post a request and tell it to replace the ID i just replaced with the received content IE spits out a NULL error for my JSON request.

This is the code I'm using...

  1.         function switch_coms_page(sid,page){
  2.             nuke_jq('.comments_split_bar').remove();
  3.             nuke_jq('#comments_pages').remove();
  4.             nuke_jq('#comments_head').remove();
  5.             nuke_jq('.comments_list').replaceWith('<tr id=\"loading_image\"><td align=\"center\" class=\"row1\" colspan=\"2\"><img src=\"modules/$module_name/images/loading.gif\" alt=\"\" /></td></tr>');
  6.             nuke_jq.post('modules.php?name=$module_name', {staff_ajax: 1, sid: sid, page: page, act: 'switch_coms_page'}, function(data){
  7.                 if (data['return'] == 'good'){
  8.                     nuke_jq('#loading_image').replaceWith(data['comments']);
  9.                 } else {
  10.                     nuke_jq('#loading_image').replaceWith('<tr id=\"loading_image\"><td align=\"center\" colspan=\"2\">$lang_staff[coms_load_error]</td></tr>');
  11.                 }
  12.             }, 'json');
  13.         }
Ive gone over every post and topic i can find with the keyword replaceWith yet nothing comes up as to what causes this error for me. Any help as to why its occurring i would appreciate.

Cheers,
Chris