Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Document.write and pausing

  1. #11
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,734
    Thanks
    46
    Thanked 216 Times in 209 Posts
    Blog Entries
    53

  2. #12
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,094
    Thanks
    1
    Thanked 205 Times in 201 Posts

    Default

    Hi there molendijk,

    I did note that there is a problem with IE11, it doesn't stop
    writing the contents of the iframe.

    You will need version 3 for IE11 inclusion.

    coothead
    Attached Files Attached Files
    Last edited by coothead; 12-03-2016 at 06:46 PM.
    ~ the original bald headed old fart ~

  3. #13
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,734
    Thanks
    46
    Thanked 216 Times in 209 Posts
    Blog Entries
    53

    Default

    Coothead, I can't test the script with IE11, but I'm modifying it in order to adapt it to my requirements. I'll show you the final version a soon as it is finished. Maybe the problem will be gone by then.

  4. #14
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,094
    Thanks
    1
    Thanked 205 Times in 201 Posts

    Default

    Hi there molendijk,

    I edited my last post with an IE cure.

    coothead
    ~ the original bald headed old fart ~

  5. The Following User Says Thank You to coothead For This Useful Post:

    molendijk (12-03-2016)

  6. #15
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,734
    Thanks
    46
    Thanked 216 Times in 209 Posts
    Blog Entries
    53

  7. #16
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,373
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    That's what I was suggestion might 'work' here:

    http://www.dynamicdrive.com/forums/s...893#post319893

    though I was not recommending it.


    Playing devil's advocate - If the page has any other scripts or css in the head, and/or a head that's complex in any other way, you're faced with duplicating all of that in your doc write script (or having to doc writing more than just the body of the 'top' page). So basically this is only for simple pages. Also, forget the head for a moment, if there are other complex things going on in the body, as I said before, there could be unexpected results.

    All that said, for fairly simple situations, this will likely work well, as will AJAX, which only breaks down, or has issues at least, when when pages become more complex.

    One thing I would point out in this though, as far as AJAX vs doc write from an iframe goes. With the doc write scenario, you're basically forcing the browser to parse the 'top' page twice, while with AJAX, it would only need to be parsed once.

    Also, there's a reason AJAX is asynchronous, the more synchronous operations you attempt to carry out that are dependent upon fetching content from the server, the more likely you may have an unrecoverable error with no way of informing the using of it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. document write (JS)
    By d-machine in forum JavaScript
    Replies: 1
    Last Post: 01-21-2011, 06:21 AM
  2. Resolved using document.write to write a script tag
    By traq in forum JavaScript
    Replies: 4
    Last Post: 11-16-2010, 04:28 AM
  3. Document.write other
    By bluewalrus in forum JavaScript
    Replies: 2
    Last Post: 11-02-2009, 06:15 AM
  4. document.write help
    By Rachele7 in forum JavaScript
    Replies: 5
    Last Post: 03-10-2009, 07:15 PM
  5. using document.write()
    By Wizard13335 in forum JavaScript
    Replies: 4
    Last Post: 11-05-2005, 02:54 AM

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
  •