You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robby Pelssers <ro...@agp.nl> on 2007/09/17 14:20:28 UTC
Invoking a submit by code instead of by useraction
Hi all,
I have a form with one refresh-button.
<fd:submit id="autoRefresh" validate="false">
<fd:hint>(De)activate autorefresh</fd:hint>
</fd:submit>
I would like to refresh the page every 10 seconds whenever the user
presses the button. The button changes looks through a
choose-construction in the jx-template:
<jx:choose>
<jx:when test="${autoRefresh}">
<ft:widget id="autoRefresh">
<fi:styling class="speedbutton-disabled" type="image"
src="xen-resource:/images/btn-refresh.gif"/>
</ft:widget>
</jx:when>
<jx:otherwise>
<ft:widget id="autoRefresh">
<fi:styling class="speedbutton" type="image"
src="xen-resource:/images/btn-refresh.gif"/>
</ft:widget>
</jx:otherwise>
</jx:choose>
Question now is: "Can i invoke a submit of the form simulating it would
be posted by the autoRefresh widget". So the user won't have to press
the refresh button every x seconds but the browser is refreshed by a
timer.
Met vriendelijke groet,
AGP Solutions B.V.
Robby Pelssers
E-mail: robby.pelssers@agp.nl
Telefoon: +31 (0)413 387 777
Fax: +31 (0)413 367 025
Mobiel: +31 (0)610 033 035
De Amert 160, 5462 GH VEGHEL
Postbus 226, 5460 AE VEGHEL
Member of the AGP Group
Internet: http://www.agp.nl/solutions <http://www.agp.nl/solutions>
De informatie in en/of gekoppeld aan dit e-mailbericht is uitsluitend
bestemd voor geadresseerde en kan vertrouwelijke gegevens bevatten.
Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van
deze informatie aan derden is niet toegestaan. Door de elektronische
verzending van het bericht kunnen er geen rechten worden ontleend aan de
informatie. Indien u dit e-mailbericht niet goed heeft ontvangen, neemt
u dan contact op met de verzender. K.v.K. 17193022