[TYPO3-formidable] majixRepaintDependancies works only for the first time

Domi Garms djgarms at gmail.com
Fri Aug 6 09:50:24 CEST 2010


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


More information about the TYPO3-project-formidable mailing list