[TYPO3-formidable] majix access label

Aike Terjung a.terjung at inmedias.com
Wed Feb 3 12:53:14 CET 2010


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
-- 

Telefon +49 2408 719983

Internetagentur, Aachen, Hamburg:     http://www.team-in-medias.de
Typo3-Agentur, Aachen, Hamburg:      http://www.typo3-macher.de

team in medias GmbH
Pascalstraße 15
52076 Aachen

Geschäftsführer: Dr. Erwin Lammenett
HRB 6764, Amtsgericht Aachen 


More information about the TYPO3-project-formidable mailing list