<thinkfr33ly@hotmail.com> wrote in message
news:1106072225.995733.324180@c13g2000cwb.googlegr oups.com...[color=blue]
>I have a page that inserts a block of javascript dynamically into the
> page "Test.html". The inserted block, "Block A", then does a
> document.write of another script block "Block B". This script block
> does its own document.write of one last script block "Block C". The
> way
> this occurs is somewhat out of my control, and I need to find a way to
> work within this framework. This only needs to work in IE 5.5 or
> better.
>
> My problem is that the code in Block C is not evaluated by the
> javascript parser. I can get it to evaluate only by doing a "ctrl+n"
> in
> IE which causes IE to open the current document in a new window. This
> also happens to cause IE to re-parse the existing DOM's javascript and
> thereby finally execute Block C.[/color]
Tested in:
IE 6.0.2900: two alerts, one for Block A, one for Block C
Firefox 1.0: two alerts, one for Block A, one for Block C
Opera 7.54u1: two alerts, one for Block C, one for Block A (yes, in that
order)
So from my testing it seems to do what you want in IE. I did it all from
my local hard disk, so it's possible it's a cross-domain security issue
preventing the script from being executed.
--
Grant Wagner <gwagner@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq