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

Script and XSL codes

Subject: Script and XSL codes
From: Tham Tinh <khautinh@xxxxxxxxx>
Date: Thu, 23 Jan 2003 09:33:56 -0800 (PST)
xsl codes
Hi all,
First, I am sorry if I post this message in the wrong
list.
Second, I have the following codes, it keeps giving me
the error: 'document.CaseManager.PrsnID.value' is null
or not an object.  PLease help!
Javascript:
-----------

<script language='javascript'>
	function casemanager()
		{
			var casemanager =  "../scripts/CaseManager.asp" +
"?PrsnID=" + document.CaseManager.PrsnID.value +
"&amp;SysID=" + document.CaseManager.SysID.value		
//alert(helppage)
			var props =
"dependent=yes,resizable=yes,height=400,width=350,status=no,toolbar=no,menubar=no,scrollbars=yes,top=10,left=300"
			helpwin =
window.open(casemanager,'CaseManager',props );
//,location=no
			helpwin.focus()
	}
</script>

xsl code:
---------

<xsl:template match="Service">
	<tr class="Grid">
		<xsl:attribute name="style">background-color:
<xsl:eval>fnIsOdd()</xsl:eval></xsl:attribute>
		<TD ALIGN="CENTER" nowrap=""
headers="Program"><xsl:value-of select="Program"
/></TD>
		<TD ALIGN="CENTER" nowrap=""
headers="Begin"><xsl:value-of select="Begin" /></TD>
		<TD ALIGN="CENTER" nowrap=""
headers="End"><xsl:value-of select="Servd_Thru"
/></TD>
		<TD ALIGN="CENTER" nowrap=""
headers="SiteName"><xsl:value-of select="Site_Name"
/></TD>
		<TD ALIGN="CENTER" nowrap=""
headers="County"><xsl:value-of select="Site_County"
/></TD>
		<TD ALIGN="CENTER" nowrap=""
headers="Phone"><xsl:value-of select="Site_Phone"
/></TD>
		<TD ALIGN="CENTER" nowrap="" headers="CaseManager">
			<form name="CaseManager" action="" method="post">
				<input type="hidden" name="PrsnID">
					<xsl:attribute name="value"><xsl:value-of
select="//Client/PrsnID" /></xsl:attribute>
				</input>
				<input type="hidden" name="SysID">
					<xsl:attribute name="value"><xsl:value-of
select="//Client/SysID" /></xsl:attribute>
				</input>
				<input type="button" value="Case Manager" 
onClick="casemanager();"></input>
			</form>
		</TD>
	</tr>
</xsl:template>

=====
"It is essential to know that to be a happy person, a happy family, a happy society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Current Thread

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.