Re: [xsl] Passing variables between Javascript and XSL

Subject: Re: [xsl] Passing variables between Javascript and XSL
From: Andrew Franz <afranz0@xxxxxxxxxxxxxxxx>
Date: Tue, 08 Nov 2005 20:23:43 +1100
Try this:

'custdata_popup?bunit_num={sql:row[2]/sql:param1}',



Oleg Konovalov wrote:

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,scrollbars=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