This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: xsl and javascript


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@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of TP
> Sent: 19 November 2001 15:53
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]