[TYPO3-project-formidable] TYPO3-project-formidable Digest, Vol 16, Issue 1
Michael Niemeyer
michael.niemeyer at 4tuna-it.de
Thu Sep 20 15:52:21 CEST 2007
Found a workaround.
Events identify elemnts by its id and radio-elements were called
radiobuttonname_item, radiobuttonname_item-1, radiobuttonname_item-2 and so
on. This way it works:
<renderlet:BUTTON name="buttonname" label="show info" >
<onclick runat="ajax" cache="false" params="textvalue, radiovalue_item,
radiovalue_item-1">
<userobj>
<php><![CDATA[
$aParams = array_pop(func_get_args());
return array($this->aORenderlets["resultinfo"]->majixShowBox(),
$this->aORenderlets["result"]->majixReplaceData(print_r($aParams,true))
);
]]></php>
</userobj>
</onclick>
</renderlet:BUTTON>
After all it's more work to find the set value for the radiobutton.
-----Ursprüngliche Nachricht-----
Von: typo3-project-formidable-bounces at lists.netfielders.de
[mailto:typo3-project-formidable-bounces at lists.netfielders.de] Im Auftrag
von typo3-project-formidable-request at lists.netfielders.de
Gesendet: Donnerstag, 6. September 2007 12:01
An: typo3-project-formidable at lists.netfielders.de
Betreff: TYPO3-project-formidable Digest, Vol 16, Issue 1
Send TYPO3-project-formidable mailing list submissions to
typo3-project-formidable at lists.netfielders.de
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidabl
e
or, via email, send a message with subject or body 'help' to
typo3-project-formidable-request at lists.netfielders.de
You can reach the person managing the list at
typo3-project-formidable-owner at lists.netfielders.de
When replying, please edit your Subject line so it is more specific
than "Re: Contents of TYPO3-project-formidable digest..."
Today's Topics:
1. Renderlet::Radiobutton: How to fetch the value? (Michael Niemeyer)
----------------------------------------------------------------------
Message: 1
Date: Wed, 05 Sep 2007 16:20:14 +0200
From: Michael Niemeyer <michael.niemeyer at 4tuna-it.de>
Subject: [TYPO3-project-formidable] Renderlet::Radiobutton: How to
fetch the value?
To: Formidable Mailing List
<typo3-project-formidable at lists.netfielders.de>
Message-ID:
<mailman.2900.1189002019.17142.typo3-project-formidable at lists.netfielders.de
>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
In a test configuration there are 4 elements: an input field, two radio
buttons, an action button and at last a window to show the information.
It works fine ff i refer only to the textvalue. But after adding the
radiovalue to the params the window will not be shown anymore.
The solution may be simple, but my question is:
Is it possible to refer to the value of a radiobutton by a button and
if, how it must be done?
Some code follows to explain it further:
// Item 1 is an input field
<renderlet:TEXT name="textvalue">
<name>Textvalue</name>
</renderlet:TEXT>
// Item 2 is a group of two radio buttons
<renderlet:RADIOBUTTON name="radiovalue">
<label>Radiovalue</label>
<data>
<items>
<item caption="On" value="on"/>
<item caption="Off" value="off"/>
</items>
</data>
</renderlet:RADIOBUTTON>
// Item 3 is a button
<renderlet:BUTTON name="buttonname" label="show info" >
<onclick runat="ajax" cache="false" params="textvalue,
radiovalue">
<userobj>
<php><![CDATA[
$aParams = array_pop(func_get_args());
return array(
$this->aORenderlets["resultinfo"]->majixShowBox(),
$this->aORenderlets["result"]->majixReplaceData(print_r($aParams,true))
);
]]></php>
</userobj>
</onclick>
</renderlet:BUTTON>
// Item 4 is an overlay box for showing the information
<renderlet:MODALBOX name="resultinfo">
<childs>
<renderlet:BOX name="result" mode="b" />
<renderlet:BUTTON name="resultinfo_close" label="close">
<onclick runat="client">
<userobj>
<php><![CDATA[
return
$this->aORenderlets["resultinfo"]->majixCloseBox();
]]></php>
</userobj>
</onclick>
</renderlet:BUTTON>
</childs>
</renderlet:MODALBOX>
------------------------------
_______________________________________________
TYPO3-project-formidable mailing list
TYPO3-project-formidable at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidabl
e
End of TYPO3-project-formidable Digest, Vol 16, Issue 1
*******************************************************
More information about the TYPO3-project-formidable
mailing list