Forum Moderators: open
Well I want to do that in an iframe but generate the document source from script...
I've tried this:
<iframe name="myFrame">
</iframe>
<script type="text/javascript">
window.myFrame.document.write('<?xml version="1.0"?>');
window.myFrame.document.write('<test>hello</test>');
window.myFrame.document.close();
</script>
But it just shows the source as HTML and not xml - is there any way to set the mimetype or anything using script? Any ideas?
J
<added>
When I posted it changed
window . m y Window.document.close() (without the extra spaces)
to:
windoWebmasterWorldindow.document.close();
Weird...
</added>
When I posted it changed
window . m y Window.document.close() (without the extra spaces)
to:
windoWebmasterWorldindow.document.close();Weird...
Thats the WebmasterWorld filter. Like trying to write LaWebmasterWorlder which should be L-a-w-n-m-o-w-e-r.