Re: Creating a new Explorer Window by passing HTML
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Creating a new Explorer Window by passing HTML

From: Aaron Gray <ang.usenet@gmail.com>
Date: Thu Apr 27 2006 - 19:52:00 CEST

"Casper" <markdanielmaltby@gmail.com> wrote in message
news:1145994201.992817.302550@u72g2000cwu.googlegroups.com...
>I currently have this code:
>
> <script language="javascript">
> function init()
> {
> // load XML source document
> var source = new ActiveXObject("Msxml2.DOMDocument.4.0");
> source.async = false;
> source.load("record49a36bde.xml");
>
> // load XSLT stylesheet document
> var stylesheet = new ActiveXObject("Msxml2.DOMDocument.4.0");
> stylesheet.async = false;
> stylesheet.load("detail_view.xsl");
>
> // transform the source using the XSLT stylesheet
> target.innerHTML = source.transformNode(stylesheet);
> }
> </script>
>
>
> I then need to be able send the html stored in 'target' to a new
> explorer window.
>
> Is this possible?

Something like :-

        var newWindow = window.open();
        newWindow.document.innerHTML = target.innerHTML;

or some variation may possibly work.

Aaron
Received on Mon May 1 05:23:49 2006