cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oceatoon <t.katelb...@systheo.com>
Subject Re: Repeater addRow action button to link??
Date Sun, 28 Nov 2004 13:01:01 GMT
Sylvain Wallez wrote:

> oceatoon wrote:
> 
>>I tried to retreive your latest update of field styling but didn't find
>>the new template you described , is it all ready up on svn ?
>>  
>>
> 
> Well, it was for a few hours, and then got overriden by Reinhard's sync
> between 2.2 and 2.1 :-/
> 
> I committed it again, and here's the template just in case Reinhard does
> some more syncing ;-)
> 
>   <xsl:template match="fi:action[fi:styling/@type = 'link']"
> priority="1">
>     <a title="{fi:hint}" href="#" onclick="forms_submitForm(this,
> '{@id}'); return false">
>       <xsl:apply-templates select="." mode="styling"/>
>       <xsl:copy-of select="fi:label/node()"/>
>     </a>
>   </xsl:template>
> 
> The difference I see is that the form_submitForm is in "onclick" and not
> in "href".
> 
> Also, be careful of not declaring a widget named "submit" as it will
> override the submit() function of the form object...
> 
> Sylvain
> 
This time all went well :)
indeed the onclick solved the problem
Thx
Regards 
Tibor



Mime
View raw message