SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link does not work in IE8. Can someone look at it?

    I am designing a website. It works on all browsers, safari, firefox..etc...but not in IE8...

    I get a UNKNOWN RUNTIME ERROR..

    </style>
    <script type="text/javascript">
    function MM_setTextOfLayer(objId,x,newText) { //v9.0
    with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
    }
    </script>

    Page site is at pixerdesignstudios.com/portfolio.html

    site is not finished. If you click on the PRINT link to the left, it should target the center of the page under the word "THE WORK"...it works fine in firefox and safari.

    can someone help with this problem?

    Thanks
    Last edited by Mittineague; Aug 8, 2011 at 03:31. Reason: OP forgot to turn off auto-link

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by joekelly View Post
    its works fine on IE8, this is my checking. its fine here.
    Even when you "click on the PRINT link to the left" ?

    From what I'm seeing, the innerHTML property is not allowed to be set on table elements.
    See this support article from Microsoft: Error Setting table.innerHTML in Internet Explorer
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So this is working on IE8? It's not working on my end?

    Someone else confirm?

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by tonydiato View Post
    So this is working on IE8? It's not working on my end?

    Someone else confirm?
    No error occurs when the page loads. The error occurs when you click on the Print link, as you stated in the original post.

    Either include the table tag in the content being written and write the whole table out, or only use innerHTML within a td element itself.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •