[TYPO3-project-formidable] tslib_pibase in Ajax event

Sanosuke303 sanosuke303 at yahoo.fr
Fri Jan 30 14:12:02 CET 2009


Hi Jerome!

Thank you for your answer and congratulation to you and your team for your work on formidable!

Best regards.

Anthony Laplane
Eureka Market Consulting
http://www.eureka-market.fr


--- En date de : Ven 30.1.09, Jerome Schneider <typo3dev at ameos.com> a écrit :

> De: Jerome Schneider <typo3dev at ameos.com>
> Objet: Re: [TYPO3-project-formidable] tslib_pibase in Ajax event
> À: typo3-project-formidable at lists.netfielders.de
> Date: Vendredi 30 Janvier 2009, 12h53
> Hi Sanosuke303,
> 
> Yes the tslib_pibase->pi_getRecords() won't be
> available in the ajax 
> context (pi_base is not loaded in the ajax context, for
> performance 
> reasons and other technical reasons, mainly)
> 
> 
> Sanosuke303 a écrit :
> > Hi and thank you to try to help me.
> > 
> > I can call tslib_pibase and it works perfectly in my
> Xml, for example to add value in a Listbox, in a php
> userobject.
> > 
> > But if I call a tslib_pibase function in an ajax
> event, it's don't work.
> > 
> > So, I solve my problem not using tslib_pibase, I use
> select exec_SELECTgetRows instead of pi_getRecord.
> > 
> > Thanks.
> > 
> > Best regards.
> > 
> > Anthony Laplane
> > Eureka Market Consulting
> > http://www.eureka-market.fr
> > 
> > --- En date de : Ven 30.1.09, Uwe Schmelzer
> <us at planungsgruppeinternet.de> a écrit :
> > 
> >> De: Uwe Schmelzer
> <us at planungsgruppeinternet.de>
> >> Objet: Re: [TYPO3-project-formidable] Re :  
> tslib_pibase in Ajax event
> >> À: typo3-project-formidable at lists.netfielders.de
> >> Date: Vendredi 30 Janvier 2009, 11h46
> >> Hi Sanosuke303,
> >>
> >> You don't need to include
> class.tslib_pibase.php.
> >> The methods from pibase should already be
> avaliable in your
> >> XML-Userobj.
> >> If not, you can try this way:
> >>
> >> Create an FE Plugin. And use formidable from
> there.
> >> Every Plugin already is an extension the
> tslib_pibase.
> >> Thus the methods are available there.
> >>
> >> class tx_YOUREXTENSIONKEY_pi1 extends tslib_pibase
> {
> >> ...
> >> }
> >>
> >> <untested>
> >> And to access your extensions properties from a
> formidable
> >> userobj
> >> you could use $this->oParent->yourFunction()
> >> </untested>
> >>
> >>
> >> cheers
> >> uwe
> >>
> >>
> >> -- 
> >> Herzliche Grüsse aus Sindelfingen
> >>
> >> Uwe Schmelzer
> >> us at planungsgruppeinternet.de
> >>
> >> Planungsgruppe Internet
> >> Parkstrasse 20
> >> 71063 Sindelfingen
> >> Tel. 07031 / 704 089
> >> Fax: 01805 / 233 633-00745
> >>
> >>
> >>
> >>
> >> Sanosuke303 schrieb:
> >>> Hi list!
> >>>
> >>> No body has an idea to solve my tslib_pibase
> problem?
> >>>
> >>> Thanks.
> >>>
> >>> Best regards
> >>>
> >>> Anthony Laplane
> >>> Eureka Market Consulting
> >>> http://www.eureka-market.fr
> >>>
> >>>> De: Sanosuke303
> <sanosuke303 at yahoo.fr>
> >>>> Hi list!
> >>>>
> >>>> I use tslib_pibase to call request
> >> (pi_getRecord...) in my
> >>>> extension on form.
> >>>> So I add
> >>>>
> >>
> require_once(PATH_tslib.'class.tslib_pibase.php');
> >>>> in my extension.
> >>>>
> >>>> All is ok in the form but not in ajax
> even. If I
> >> call
> >>>> tslib_pibase in ajax event (onclick
> button), I
> >> have this
> >>>> error message : "undefined class name
> >>>> tslib_pibase".
> >>>>
> >>>> So how to add the tslib_pibase requirement
> without
> >> modify
> >>>> formidable core.
> >>>>
> >>>> Thanks for your help.
> >>>>
> >>>> Best regards.
> >>>>
> >>>>
> >>>>       
> >>>>
> _______________________________________________
> >>>> TYPO3-project-formidable mailing list
> >>>>
> TYPO3-project-formidable at lists.netfielders.de
> >>>>
> >>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> >>>
> >>>       
> >>
> >> _______________________________________________
> >> TYPO3-project-formidable mailing list
> >> TYPO3-project-formidable at lists.netfielders.de
> >>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
> > 
> > 
> >       
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable


      


More information about the TYPO3-project-formidable mailing list