|
This is mine form definition file:
<fd:form
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"> <fd:repeater id="name"
initial-size="{$my_var}">
<fd:label>repeater</fd:label> <fd:widgets> <fd:field id="nazw1" > <fd:label>name</fd:label> <fd:datatype base="string"/> </fd:field> <fd:field id="nazw2" required="true"> <fd:label>Nazwa:</fd:label> <fd:datatype base="string"/> </fd:field> </fd:widgets> </fd:repeater> {....}
</fd:form>
And now I want to send a variable from _javascript_:
var form = new
Form("forms/my_form_definition_file.xml",{"my_var":my_var}); <--this doesn't
work
form.showForm("forms/t_nowyTyp.xml",{"my_var":my_var}); <-- when I send my_var to form template it works Bartosz Zgodziński |
- Conditional replace / reinsert with SourceWritingTransf... Stephanie Zohner
- Re: Conditional replace / reinsert with SourceWrit... laurent_rorive
- Re: Is it posibile to send parameters into for... Bartosz Zgodzinski
- Re: Is it posibile to send parameters into... Bruno Dumon
