|
Subject: Re: JavaScript In Cocoon From: Stephen Yearl <stephen_yearl@xxxxxxx> Date: Wed, 10 Nov 1999 10:33:10 -0800 |
Paul Johnson wrote:
>
> Ok,
>
Also, do this to make it type out your java script.
>
> <SCRIPT>
> <![CDATA[
> function winFunction(desc)
> {
> w =window.open("blank.htm","winName","width=300,height=300");
> w.document.write("<HTML><HEAD><TITLE>Program Description</TITLE>");
> w.document.write("</HEAD>");
> w.document.write("<BODY><DIV>Hello, world!<DIV></BODY></HTML>");
> w.document.write(desc);
> w.document.write("Hello, world");
> w.document.write("</DIV></BODY></HTML>");
> }
> ]]>
> </SCRIPT>
And you could pass the result of an xsl operation to a javascript
variable for writing in your new window:
<script language="JavaScript">
<![CDATA[title = ']]><xsl:value-of
select="path/to/your/value"/><![CDATA[']]>
<xsl:comment>
<![CDATA[
function winFunction(desc)
{
w =window.open("blank.htm","winName","width=300,height=300");
w.document.write("<HTML><HEAD><TITLE>");
w.document.write(title);
w.document.write("</TITLE></HEAD>");
w.document.write("<BODY><DIV>Hello,
world!<DIV></BODY></HTML>");
w.document.write(desc);
w.document.write("Hello, world");
w.document.write("</DIV></BODY></HTML>");
}
]]>
</xsl:comment>
</script>
Paul Johnson wrote:
>
> Ok,
>
Also, do this to make it type out your java script.
>
> <SCRIPT>
> <![CDATA[
> function winFunction(desc)
> {
> w =window.open("blank.htm","winName","width=300,height=300");
> w.document.write("<HTML><HEAD><TITLE>Program Description</TITLE>");
> w.document.write("</HEAD>");
> w.document.write("<BODY><DIV>Hello, world!<DIV></BODY></HTML>");
> w.document.write(desc);
> w.document.write("Hello, world");
> w.document.write("</DIV></BODY></HTML>");
> }
> ]]>
> </SCRIPT>
--
Stephen Yearl, Project Archivist
stephen_yearl@xxxxxxx
*************************
Connecticut Historical Society
1 Elizabeth Street
Hartford, CT, 06105
*************************
http://www.chs.org
*************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: JavaScript In Cocoon, Paul Johnson | Thread | invoking XT from the command line (, Mike Brown |
| Re: indentation, John E. Simpson | Date | Re: Sorting and position, David Carlisle |
| Month |