claudette
03-27-2008, 12:20 PM
I'm a newbie! maybe my question ist stupid, but I have no idea if it is possible or not and how it might be possible.
I have a form (in my code: myForm). and I want to inherit another form from this form (in my code: mysecondform).
this second form should additionally have another form item, for example a checkbox.
I would like to define where to put this checkbox. For example after my radiogroup from my parent form class.
how can I realize it?
a second question:
How can I get data from server for example to fill my list with values?!?
:confused:
are there any tutorials which describe both problems?
thanks in advance!!
<canvas bgcolor="0xeaeaea" width="640" height="1000" debug="true">
<simplelayout spacing="5"/>
<class name="myForm">
<form id="ex1" name="myForm">
<submit name="submitter"/>
<statictext>What is your definition of fun?</statictext>
<radiogroup x="30" name="definition">
<radiobutton value="1">Playing video games</radiobutton>
<radiobutton value="2">Chatting with friends</radiobutton>
<radiobutton value="3">Eating french fries</radiobutton>
</radiogroup>
<statictext>Where do you live?</statictext>
<list name="home" x="30" shownitems="4">
<textlistitem selected="true">city</textlistitem>
<textlistitem>town</textlistitem>
<textlistitem>island</textlistitem>
<textlistitem>village</textlistitem>
<textlistitem>cubby hole</textlistitem>
</list>
<checkbox name="email">Please send me email that is fun.</checkbox>
<button isdefault="true" onclick="parent.submitter.submit()">Submit</button>
</form>
</class>
<class name="mysecondform" extends="myForm" bgcolor="red">
<checkbox name="email">another checkbox</checkbox>
</class>
<myForm />
<mysecondform />
</canvas>
I have a form (in my code: myForm). and I want to inherit another form from this form (in my code: mysecondform).
this second form should additionally have another form item, for example a checkbox.
I would like to define where to put this checkbox. For example after my radiogroup from my parent form class.
how can I realize it?
a second question:
How can I get data from server for example to fill my list with values?!?
:confused:
are there any tutorials which describe both problems?
thanks in advance!!
<canvas bgcolor="0xeaeaea" width="640" height="1000" debug="true">
<simplelayout spacing="5"/>
<class name="myForm">
<form id="ex1" name="myForm">
<submit name="submitter"/>
<statictext>What is your definition of fun?</statictext>
<radiogroup x="30" name="definition">
<radiobutton value="1">Playing video games</radiobutton>
<radiobutton value="2">Chatting with friends</radiobutton>
<radiobutton value="3">Eating french fries</radiobutton>
</radiogroup>
<statictext>Where do you live?</statictext>
<list name="home" x="30" shownitems="4">
<textlistitem selected="true">city</textlistitem>
<textlistitem>town</textlistitem>
<textlistitem>island</textlistitem>
<textlistitem>village</textlistitem>
<textlistitem>cubby hole</textlistitem>
</list>
<checkbox name="email">Please send me email that is fun.</checkbox>
<button isdefault="true" onclick="parent.submitter.submit()">Submit</button>
</form>
</class>
<class name="mysecondform" extends="myForm" bgcolor="red">
<checkbox name="email">another checkbox</checkbox>
</class>
<myForm />
<mysecondform />
</canvas>