Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 185657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:30:32+00:00 2026-05-11T15:30:32+00:00

In my current application i need to copy the content of one table into

  • 0

In my current application i need to copy the content of one table into another… With setting innerHTML it works perfectly in FF… but not in IE8… Here is the Code i used to copy in FF:

getID('tableA').innerHTML = getID('tableB').innerHTML; // getID is a custom function i wrote to provide a shorter version of document.getElementById(); 

TableA is empty (only the tbody tag exists). TableB is looking like this:

  table   tbody     tr       td 'Content' /td       td 'Content' /td     /tr   /tbody /table  

I already tried using nodeValue.. or appendData… or outerHTML.. but nothing really worked…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:30:33+00:00Added an answer on May 11, 2026 at 3:30 pm

    Internet Explorer doesn’t let you edit the inside of tables with innerHTML – it is all or nothing.

    Since you are trying to use innerHTML to copy the information, a complete copy should be safe (i.e. not have any id attributes that might become duplicated), in which case I would do this:

    var source = document.getElementById('tableA'); var destination = document.getElementById('tableB'); var copy = source.cloneNode(true); copy.setAttribute('id', 'tableB'); destination.parentNode.replaceChild(copy, destination); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure which is these is appropriate for my current application. I need
In my C# application, I need to check if the current user is a
A common scenerio we are running into with our current application is where we
I am current writing an application and need to show the current days of
I need to know how I can detect the current application pool I am
In my current application, I need to be able to do this type of
What is the correct way for a application to restart another copy of itself
Current Application Server Configuration: IIS 6.0 Windows 2003 Server Standard Edition SP2 .NET Framework
The current application that I'm working on seems to recycle the application pool very
In my current application I have a main form: frmMain with a statusstrip and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.