[TYPO3-formidable] majixRepaintDependancies works only forthefirst time
Stéphane FILLION
s.fillion at ameos.com
Fri Aug 6 14:27:03 CEST 2010
I think this is not yet implemented in Formidable.
But it's possible to add this feature.
If you have time and motivation, you can develop it and give us a patch. ;)
Otherwise, we'll add this feature in a next revision.
Regards,
Stéphane
-----Message d'origine-----
De : typo3-project-formidable-bounces at lists.typo3.org [mailto:typo3-project-formidable-bounces at lists.typo3.org] De la part de Domi Garms
Envoyé : vendredi 6 août 2010 10:21
À : TYPO3 project list for the FORMidable extension
Objet : Re: [TYPO3-formidable] majixRepaintDependancies works only forthefirst time
Thanks, I had a a error in reasoning. Now its working.
Is it possible for using majixRepaintDependencies also for <renderlet:DATE>?
Greetings from Bali
Domi
2010/8/6 Stéphane FILLION <s.fillion at ameos.com>:
> Hello Domi,
>
> In your renderlet:LISTBOX age_youngest, you have an error :
>
> Replace
> return $this->rdt("age_oldest")->majixRepaintDependancies();
>
> By
> return $this->rdt("age_youngest ")->majixRepaintDependancies();
>
>
> Regards,
> Stéphane
>
>
> -----Message d'origine-----
> De : typo3-project-formidable-bounces at lists.typo3.org [mailto:typo3-project-formidable-bounces at lists.typo3.org] De la part de Domi Garms
> Envoyé : vendredi 6 août 2010 09:50
> À : TYPO3 project list for the FORMidable extension
> Objet : [TYPO3-formidable] majixRepaintDependancies works only for thefirst time
>
> Hello,
>
> I try majixRepaintDependancies out, but it works only for the first
> depency, for the second the ajax circle pop shortly up but no
> repainting follows. What am I miss out? Hope someone can give me a
> hint.
>
> <renderlet:BOX mode="h4" html="How long do you want to work?" />
>
> <renderlet:LISTBOX name="duration_min" >
> <onchange runat="ajax" syncValue="true" cache="false">
> <userobj>
> <php><![CDATA[
> return $this->rdt("duration_min")->majixRepaintDependancies();
> ]]></php>
> </userobj>
> </onchange>
>
> <data>
> <userobj>
> <php><![CDATA[
> $aData = array();
> for($i=0;$i<24;$i++) {
> array_push($aData,$i);
> }
> array_push($aData,"24+");
> return $this->arrayToRdtItems($aData);
> ]]></php>
> </userobj>
> </data>
> </renderlet:LISTBOX>
>
> <renderlet:LISTBOX name="duration_max" label="to" dependsOn="duration_min" >
> <data>
> <userobj>
> <php><![CDATA[
> $aData = array();
> $sValue = $this->rdt("duration_min")->getValue() + 1;
> for ($i=$sValue;$i<24;$i++) {
> $aData[$i] = $i;
> }
> array_push($aData,"24+");
> return $this->arrayToRdtItems($aData);
> ]]></php>
> </userobj>
> </data>
> </renderlet:LISTBOX>
>
>
>
> <renderlet:BOX mode="h4" html="What age range of Children would you
> like to look after?" />
>
> <renderlet:LISTBOX name="age_youngest" >
> <onchange runat="ajax" syncValue="true" cache="false">
> <userobj>
> <php><![CDATA[
> return $this->rdt("age_oldest")->majixRepaintDependancies();
> ]]></php>
> </userobj>
> </onchange>
>
> <data>
> <userobj>
> <php><![CDATA[
> $aData = array();
> for($i = 1;$i<15;$i++) {
> $aData[$i] = $i;
> }
> return $this->arrayToRdtItems($aData);
>
> ]]></php>
> </userobj>
> </data>
> </renderlet:LISTBOX>
>
> <renderlet:LISTBOX name="age_oldest" dependsOn="age_youngest" label="to">
> <data>
> <userobj>
> <php><![CDATA[
> $aData = array();
> $sValue = $this->rdt("age_youngest")->getValue() + 1;
> for($i = $sValue;$i<15;$i++) {
> $aData[$i] = $i;
> }
> array_push($aData,"15+");
> return $this->arrayToRdtItems($aData);
> ]]></php>
> </userobj>
> </data>
> </renderlet:LISTBOX>
>
>
> Regards,
>
> Domi
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
>
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
>
_______________________________________________
TYPO3-project-formidable mailing list
TYPO3-project-formidable at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
More information about the TYPO3-project-formidable
mailing list