[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl and javascript

Subject: RE: xsl and javascript
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Mon, 19 Nov 2001 16:39:12 -0000
javascript function ol
Tp,
You want something more like
<xsl:variable name="x" select="'something'" />
<script...>
function ol(thing){
	var newDoc = document.open("text/html", "replace");
	newDoc.write(thing);
	newDoc.close();
}
</script>
<body onload="ol('{$x}')>
	...
</body>

That way you don't have to open and close windows and get those anoying
little alerts popping up.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of TP
> Sent: 19 November 2001 15:53
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl and javascript
> 
> 
> What I want to do, is when the xsl opens, use <xsl:variable> 
> to get the data i need in some variable x and then call a 
> javascript function to open a new window with that data and 
> at the same time close the current window.
> 
> i got the part for the variable. but i cannot call a 
> javascript function within the body of the xsl file.
> 
> please advise.
> 
> Thanks,
> 
> TP.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Re: xsl and microsoft:please help me understand, (continued)
        • TP - Fri, 16 Nov 2001 10:32:10 -0500 (EST)
        • cutlass - Fri, 16 Nov 2001 10:41:22 -0500 (EST)
        • Chris Bayes - Fri, 16 Nov 2001 11:25:29 -0500 (EST)
        • TP - Mon, 19 Nov 2001 10:55:42 -0500 (EST)
        • Chris Bayes - Mon, 19 Nov 2001 11:38:25 -0500 (EST) <=
        • TP - Mon, 19 Nov 2001 10:56:04 -0500 (EST)
        • cutlass - Mon, 19 Nov 2001 10:58:57 -0500 (EST)
        • Chris Bayes - Mon, 19 Nov 2001 11:40:07 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.