cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Konovalov <oleg...@yahoo.com>
Subject Re: Passing variables between XSL and JavaScript
Date Thu, 10 Nov 2005 05:12:44 GMT
Thank you everybody, that was very useful.

One more question:
For that popup I have a URL:
<a>
   <xsl:attribute name="href">
     
<xsl:text>window.open('custdata_popup?bunit_num='</xsl:text>
      <xsl:value-of select='sql:row[2]/sql:param1'/>
<xsl:text>, 'custdata_popup', features);</xsl:text>
    </xsl:attribute>
</a>
If the user clicks a second time on the same link
(say, custdata_popup?bunit_num=123),
it rightly refreshes that popup.

But for me it is desirable to launch another popup in case of
another link (with custdata_popup?bunit_num=234).

How to achieve that ?


TIA,
Oleg.

--- Joerg Heinicke <joerg.heinicke@gmx.de> wrote:

> On 08.11.2005 08:06, Derek Hohls wrote:
> 
> > <a><xsl:attribute name="href">custdata_popup?bunit_num=
> > <xsl:value-of
> select='sql:row[2]/sql:param1'/><xsl:attribute></a>
> >  
> > (be careful to avoid extra spaces and lines when using this
> > approach)
> 
> Above the extra spaces are only important infront and after
> the text 
> 'custdata..._num='
> 
> Another possibility is to wrap the text in <xsl:text>:
> 
> <a>
>    <xsl:attribute name="href">
>      <xsl:text>custdata_popup?bunit_num=</xsl:text>
>      <xsl:value-of select='sql:row[2]/sql:param1'/>
>    </xsl:attribute>
> </a>
> 
> Makes the XSLT mostly more readable.
> 
> Jörg
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message