This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem trying to display additional information in popup box
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Problem trying to display additional information in popup box
- From: Betty dot Risher at Jeppesen dot com
- Date: Fri, 13 Jul 2001 08:42:25 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
Rene,
Thanks, I tried your suggestion and it worked great!
I guess I better start looking at javascript now, I thought that I had some
time before needing it but it appears that I need to get into that now.
Thanks again.
**************************************************************
Rene de Vries <RdVries@PCL-HaGe.nl> on 07/13/2001 08:29:08 AM
Please respond to xsl-list@lists.mulberrytech.com
To: "'xsl-list@lists.mulberrytech.com'" <xsl-list@lists.mulberrytech.com>
cc: Betty Risher/Jeppesen/TMC@Jeppesen
Subject: RE: [xsl] Problem trying to display additional information in popup
box
Hi Betty,
If I understand you right, you want to display the text of <chgmsg> in a
separate window in your browser.
One of the ways you can do that is creating a button like this:
<xsl:template match="/">
<html>
<head>
<script type="text/javascript">
function DisplayPU(cText)
{
alert(cText);
}
</script>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="chgmsg">
<xsl:value-of select="@type"/>
<input name="puBox" type="button" onclick="DisplayPU('{chgdesc}')"
value="Change Message"/>
</xsl:template>
Greetings Rene
{ @ @ }
^
\__/
"You don't need eyes to see, you need vision!"
-----Oorspronkelijk bericht-----
Van: Betty.Risher@Jeppesen.com [SMTP:Betty.Risher@Jeppesen.com]
Verzonden: vrijdag 13 juli 2001 15:20
Aan: xsl-list@lists.mulberrytech.com
Onderwerp: [xsl] Problem trying to display additional information in popup
box
Hi,
I'm trying to resolve an issue with additional information displaying in a
separate popup box, from the main text display.
The data element of <chgmsg> resides within the main flow of the data, but needs
to be displayed in a separate display box.
Based on the code provided below, I have tried to create a link (using an image)
to click on, that opens another box for display.
This portion seems to work ok, but I can't get any of the information within the
<chgmsg> to display within the box.
I've tried to find information and examples pertaining to this issue, but have
had no luck. I'm not sure what I'm doing incorrectly.
Am I on the right track? Is what I'm attempting to do possible?
Any assistance would be greatly appreciated.
Thanks,
Betty Risher
****************************************************
XSL styles snipet
<xsl:template match="chgmsg">
<a href="#{generate-id(chgdesc)}" target="display">
<img src="./pics/exlink.gif" align="right"></img>
</a>
</xsl:template>
<xsl:template match="chdesc">
<xsl:apply-templates/>
</xsl:template>
***************************************************
XML Code
<pgblk chapnbr="07" sectnbr="00" subjnbr="00" pgblknbr="00" confltr=""
confnbr="01" chg="U" effvect="001999" id="T07-00-00-00" mfrid="EN0700000000">
<effect effvect="001999" efftext="001999"/>
<chgmsg type="AIRBUS">
<chgdesc>CORRECTION/ADDITION/AMPLIFICATION CONNECTOR PART NUMBER
REVISED.</chgdesc>
</chgmsg>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list