User Profile

Collapse

Profile Sidebar

Collapse
sj071
sj071
Last Activity: Apr 19 '09, 08:50 PM
Joined: Mar 17 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for helping out, I appreciate it. Sorry it's taken a while for me to reply.

    Code:
    document.getElementById("myli").innerHTML = "3rd party output"
    Did you mean for the code above to be a replacement for document.write in the 3rdparty.js file in first post example? If so, then I can't do that, as I can't modify the 3rdparty.js file.

    It seems like there might not be a solution, unless I've mis-understood...
    See more | Go to post

    Leave a comment:


  • The timeout didn't seem to help, even when substituting the script tag for some plain text. I'm thinking that is due to the use of the deprecated document.write?

    I'm therefore back to square 1 (almost). You mentioned using DOM functions earlier instead of document.write. Is there a wrapper function that can replace it, so that I could write each one of the blocks to the DOM, one by one?

    Code:
    var block1 = '<ul><li>';
    ...
    See more | Go to post

    Leave a comment:


  • Thanks for the reply.

    Do you mean re-writing the 3rd party file itself to use DOM statements? If so, that won't be possible in all cases unfortunately (it may not always be the same javascript file).

    If the html in the "myjs.js" file were to be split up so that each section was placed in a different function, and then each function executed once the other had fully loaded, would that overcome the sequencing...
    See more | Go to post

    Leave a comment:


  • document.write, script tags, and IE (execution order)

    I'm little more than a novice when it comes to javascript, and this particular problem has been driving me mad for the past few days...

    The Problem:

    I have a javascript file that uses document.write to send output to the browser. This javascript file contains some html code and another script tag.

    The execution order in Internet Explorer (6&7) appears to be different than that of browsers such as FireFox....
    See more | Go to post
No activity results to display
Show More
Working...