The <head/> is there and the JS is referenced inside, like this: <head> <script type="text/javascript" language="JavaScript" src="forms-lib.js"> </script> </head> ...or did you mean something else?
I discovered my src was incorrect; should be just src="forms-lib.js", but there's still a syntax error on pageload and the stacktrace log says: org.apache.avalon.framework.CascadingRuntimeException: The undefined value has no properties. The problem is related to a function in the Flowscript: fun.apply(args); cause: ConversionError: The undefined value has no properties. (file:/.../flowscript.js; line 53) Best regards, Ellie -----Ursprüngliche Nachricht----- Von: Christofer Dutz [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. Juni 2006 16:11 An: [email protected] Betreff: AW: How can I use the repeater add-row function with a normal button? Sounds like you are missing a <head/> tag, because this is where the JavaScript code is added. Be sure to call it <head> and not prefix it with any namespaces (I think I remember this being a problem sometimes) 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 15:17 An: [email protected] Betreff: AW: How can I use the repeater add-row function with a normal button? Thanks a lot! It surely looks promising, but for some reason I get an error when I click the link. The repeater action Tag looks like this now: <a id="m54_extra" name="m54_extra" title="a test" href="javascript:forms_submitForm(this,'m54_extra')">add rows</a> Error message: Fehler: forms_submitForm is not defined Quelldatei: javascript:forms_submitForm(this,'m54_extra') Zeile: 1 I thought it was automatically included, but in case it isn't I also tried to include the Javascript with the forms_submitForm function: <script type="text/javascript" language="JavaScript" src="resources/forms-lib.js"> </script> but then I get a syntax error when the page is loaded. What am I missing? Kind regards, Ellie -----Ursprüngliche Nachricht----- Von: Christofer Dutz [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. Juni 2006 11:21 An: [email protected] Betreff: AW: How can I use the repeater add-row function with a normal button? 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 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]
