xsl-list
[Top] [All Lists]

Re: Passing variables between Javascript and XSL

2005-11-08 02:23:43

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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>