IE doesn't do object.innerHTML on t td element?

Posted on 2008-11-04
Last Modified: 2013-12-08
I have a web page which contains a table that is generated dynamically by AxpDB, (a free ASP control from, using ASP and ADO to extract the table information from an SQL Server database. It generates a really nice table and allows adding/deleting/editing/sorting, but I have no control over the HTML code that comprises the table. However, AxpDB gives each element an ID, which helps a lot.

One of the columns in the database is a URL. Of course, SQL Server doesn't have a hyperlink data type, so what I get in the table is just the text version of the hyperlink. I want to convert that text into a clickable link. So I wrote some Javascript that changes the table cells by changing objCell.innerHTML.replace() using s regular expression I picked up on the net, and running when the document loads. It works fine in Firefox, where I was debugging it ... but it doesn't work at all in Internet Explorer 7. And IE7 is our corporate standard; it's OK if it doesn't work in Firefox but it must work in IE7. Arrggh!

I've attached the page as it's seen in View | Source from IE. It a .txt file but it should be a .asp file.

What can I do to get this working in IE7?
Question by:JonFleming
    LVL 19

    Accepted Solution

    You are checking the cell by getting the textContent property.
    This isn't supported in IE. Use innerText property for IE

    Author Closing Comment

    Well, that was certainly easier than I thought!

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
    Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now