[Tobago] Calling JavaScript after pressing a button

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Tobago] Calling JavaScript after pressing a button

Bernd Becker
Dear all,

what is the easiest way to call a JavaScript function after pressing a button in Tobago 4.3.2?

I tried to use onevent in a f:ajax command (see below) - but it doesn’t work.



<tc:button image="fa-copy">
        <f:ajax execute=":::formulierungen :::hiddenField" render=":::formulierungen"
                listener="#{schuelerfuerfachHandler.copyToClipboard}" onevent="setClipboard"/>
</tc:button>



Regards

Bernd Becker