Hi
It's very interesting problem. I couldn't even find any inforamtion
about it on the google.
I think that the best way of explain will be this simple example:
<html>
<body>
<script language="JavaS cript" type="text/javascript"
src="write.js"> </script>
</body>
</html>
write.js:
document.write( "start<br />\n");
document.write( "<" + "script language='JavaS cript'
type='text/javascript' src='test.js'>< " + "/script>");
document.write( "end<br />\n");
and test.js:
document.write( 'middle <br />');
The expected output is:
start
middle
end
but the real output is:
start
end
middle
This output has to be generated inside "write.js" file and I have to
use sometimes some external files like this "test.js".
I'm trying to find a solution to force a browser to output everything
from test.js before the "end".
I found only this info:
where I found that placing HTML tag (without JavaScript) force a
browser to output the buffer. But unfortuanetly I couldn't output any
HTML tag inside write.js file.
Is it possible to force a browser to render the content before "end"
document.write?
It's very interesting problem. I couldn't even find any inforamtion
about it on the google.
I think that the best way of explain will be this simple example:
<html>
<body>
<script language="JavaS cript" type="text/javascript"
src="write.js"> </script>
</body>
</html>
write.js:
document.write( "start<br />\n");
document.write( "<" + "script language='JavaS cript'
type='text/javascript' src='test.js'>< " + "/script>");
document.write( "end<br />\n");
and test.js:
document.write( 'middle <br />');
The expected output is:
start
middle
end
but the real output is:
start
end
middle
This output has to be generated inside "write.js" file and I have to
use sometimes some external files like this "test.js".
I'm trying to find a solution to force a browser to output everything
from test.js before the "end".
I found only this info:
where I found that placing HTML tag (without JavaScript) force a
browser to output the buffer. But unfortuanetly I couldn't output any
HTML tag inside write.js file.
Is it possible to force a browser to render the content before "end"
document.write?
Comment