Oh well ... my mistake ... type="link". I forgot, that I modified my
sapmle-styling stylesheets ... sorry :(
But I found the code you were looking for:
<a id="{id of the widget}" name="{id of the widget}" title="{any hint you
like}" href="javascript:forms_submitForm(this,'{id of the
widget}')">linktext
</a>
Regards,
Chris
[ c h r i s t o f e r d u t z ]
IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt
fon: 0 61 51 / 66 717 - 21
fax: 0 61 51 / 66 717 - 29
email: [EMAIL PROTECTED]
http://www.univativ.de
Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
-----Ursprüngliche Nachricht-----
Von: Lamvik Eldbjörg (Applikations-Entwicklerin)
[mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Juni 2006 09:05
An: [email protected]
Betreff: AW: How can I use the repeater add-row function with a normal
button?
> How about making the button an image-button? Then Cocoon automatically
> creates a link with an image which contains the JS code for this
> validation
Hi Chris, I appreciate your help and tried your suggestion with the image
button:
<ft:widget id="m54_extra">
<fi:styling type="image" src="foo.gif" />
</ft:widget>
Cocoon turns it into:
<input xmlns="" title="" name="m54_extra" type="image" id="m54_extra"
value="Weitere Gegenstände" src="foo.gif">
However, it behaves in the same way as the submit button:
When clicking the button, I only get my validation popup (html), no rows are
added. If I click the button after the required fields are filled out, the
extra row is added.
I was hoping I wouldn't have to change the submit and/or validation
procedure.
If I misunderstood, please enlighten me!;-)
Thanks,
Ellie
Diese E-Mail beinhaltet möglicherweise vertrauliche oder gesetzlich
geschützte Inhalte. Sie ist ausschliesslich für die Empfänger bestimmt.
Falls Sie nicht die als Empfänger bestimmte Person sind, sind Sie nicht
berechtigt, die E-Mail oder Teile davon zu lesen, zu kopieren,
weiterzuleiten oder anderweitig zu verwenden.
Falls Sie diese E-Mail irrtümlicherweise erreicht hat, bitten wir Sie, diese
sofort vollständig zu löschen und die absendende Person umgehend zu
benachrichtigen.
Die Mobiliar lehnt jegliche Haftung für Schäden im Zusammenhang mit dieser
E-Mail ab. Die E-Mail-Kommunikation mit der Mobiliar kann überwacht werden.
***
Le présent courriel peut contenir des informations confidentielles ou
protégées par la loi. Il est destiné exclusivement au(x) destinataire
(s)indiqué (s). Si vous n'êtes pas mentionné(e) en tant que destinataire,
vous n'êtes pas en droit de lire tout ou partie du présent courriel, ni de
le transmettre, ni d'en faire usage de quelque manière que ce soit.
Aussi, si ce courriel vous est parvenu par erreur, nous vous prions de
procéder dès à présent à sa suppression et d'en informer immédiatement la
personne l'ayant expédié.
La Mobilière décline toute responsabilité quant à d'éventuels dommages en
liaison avec le présent courriel. La communication par courriel avec la
Mobilière peut faire l'objet d'une surveillance.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]