SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot diskhub's Avatar
    Join Date
    Jun 2004
    Location
    singapore
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question inconsistent innerhtml display format in firefox and ie.

    Hi all,
    recently i loaded a xml into html document and try to do some manipulation to the data and display them in a div like a simple function below:

    HTML Code:
    var objTarget = document.getElementById(targetTag);
    document.getElementById(targetTag).innerHTML = (objTarget.innerHTML != '')? '' : (msg);
    I wish to achieve a similar result like as in from firefox as shown below in the image


    Thanks, please advice
    I LOVE PHP!!!

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's too hard to tell without a proper look. Can you post a link or the code? and I'll check it out
    Mashups, DOM Scripting and all the things we call Web2.0 blogger
    http://www.heavyweightgeek.org/
    http://twitter.com/heavyweightgeek


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •