Well, that is really something I can use. Thanks!
Well, that is really something I can use. Thanks!
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
Last edited by coothead; 12-03-2016 at 06:46 PM.
~ the original bald headed old fart ~
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.
Hi there molendijk,
I edited my last post with an IE cure.
coothead
~ the original bald headed old fart ~
molendijk (12-03-2016)
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
Bookmarks