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

Passing variables between Javascript and XSL

Subject: Passing variables between Javascript and XSL
From: Oleg Konovalov <olegkon@xxxxxxxxx>
Date: Mon, 7 Nov 2005 17:42:17 -0500
javascript pass variables
Hi,

I am trying to invoke a popup window from XSL page (of Cocoon 2.0 app):
...
<a href="#" class="NavLink"
onClick="var features =
'maximize=no,toolbar=no,location=no,menubar=no,status=yes,resizable=yes,scrol
lbars=yes,top=0,left=0,screenX=0,screenY=0,width='
+ (screen.availWidth - 10) + ',height=' + (screen.availHeight - 30);
window.open('custdata_popup?bunit_num=','custdata_popup', features
);">
<xsl:value-of select='sql:row[2]/sql:param2'/></a><br/>
...

The problem is that I have to pass the value of the XSL variable as a
parameter to that URL as:
'custdata_popup?bunit_num='<xsl:value-of select='sql:row[2]/sql:param1'/>

How can I do that ?


Thank you,
Oleg.

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.