[TYPO3-project-formidable] Ajax question (accessing to things)...

François SCHOSSIG fs.nospam1 at a-e-r.org
Fri May 18 18:09:22 CEST 2007


Hello the list (and Jérôme)...

In a LISTBOX, I would like to do the next thing :

       <onchange runat="ajax">
         <userobj>
           <php><![CDATA[
             $groupLevel1Array = $this->_oParent->oAERoutils- 
 >aer_populateGroupLevel1Existing(
                                   $this->oDataHandler->aElement 
['tablename'],
                                   $this->oDataHandler- 
 >_getThisFormData('tx_aer_group_type')
                                 );
             if (count($groupLevel1Array) == 1) $value_group_level1 =  
$groupLevel1Array[0]['value'];
             else $value_group_level1 = '';

             ../..

             return array(
               $this->aORenderlets["tx_aer_group_level1"]- 
 >majixReplaceData($value_group_level1),
               $this->aORenderlets["tx_aer_group_level2"]- 
 >majixReplaceData($value_group_level2)
             );
           ]]></php>
         </userobj>
       </onchange>

But, the things are not available... I have a little $this-> problem!  
What is $this in my case?
Where can I get:
     ->_oParent->oAERoutils->...
     ->oDataHandler->aElement
     ->oDataHandler->_getThisFormData

And in the same go a small other question: how can I hide an show a  
listbox with ajax?
By using a box with the listbox as child?

Thanks a lot.
--
F. SCHOSSIG, ICT Manager
Assemblée des Régions d'Europe
http://www.a-e-r.org




More information about the TYPO3-project-formidable mailing list