Important
to remember that using document.open/close/write from _javascript_ during
non-loading period will cause the current document context to reset, meaning you
lose what was previously there. -
var
iFrame = document.createElement(‘IFRAME’); -
iFrame.src
= "" //pretty sure you don’t need this -
iFrame.contentWindow.document.body.innerHTML
= “blarrrrrrr”; -
iFrame.contentWindow.document.body.innerHTML
+= “more BLARRRRRRRRR”; resetting the context of the enclosing body? This means reloading an iframe will ... fire a body onload event or what?
are you sure it doesn't reset the context of the iframe alone? (hopeful look)
<take a moment to ready what was actually written>
.. so using innerHTML avoids the context reset altogether...
thanks
</>
Sam
|
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs