[TYPO3-formidable] majix access label
    Luc Muller 
    "l.muller[no]" at [spam]ameos.com
       
    Wed Feb  3 15:24:31 CET 2010
    
    
  
Hello AIke.
I think that a simple way to achieve this, is to place your listbox 
renderlet in a box renderlet and use the majixdisplay on this box. this 
way listbox and label should be hidded.
Hope this helps.
Luc Muller
Le 03/02/2010 12:53, Aike Terjung a écrit :
> Hello,
>
> short question, i have to show a part of a searchbox only if one special entry is selected. I have realised it this way:
>
> <onChange runat="ajax" params="search_branches.country">
>                  <userobj>
>                      <php><![CDATA[
>                          $aData = $this->getParams();
>
>                          $sRub = $this->oMajixEvent->getParam("search_branches.country");
>                          $this->aORenderlets["search_branches.country"]->setValue($sRub);
>
>                          $aItems = $this->aORenderlets["search_branches.provinces"]->_getItems();
>
>                           if (count($aItems)>1){
>                              return array($this->aORenderlets["search_branches.provinces"]->majixReplaceData($aItems),$this->aORenderlets["search_branches.provinces"]->majixSetStyle(array('display'=>'block')));
>                          }
>                          else {
>                              return array($this->aORenderlets["search_branches.provinces"]->majixReplaceData($aItems),$this->aORenderlets["search_branches.provinces"]->majixSetStyle(array('display'=>'none')));
>                              // ,$this->aORenderlets["search_branches.provinces"]->majixSetValue(0)
>                          }
>                          ]]>
>                      </php>
>                  </userobj>
>              </onChange>
>
> this works good. Now we have added a label to the provinces listbox, that dose not hide because the display:none is set to the listbox itself. How can i access the Label of the Listbox to hide it additionaly?
>
> thanks in advance
>
> Aike
    
    
More information about the TYPO3-project-formidable
mailing list