[TYPO3-english] Frontend & ajax

Ries van Twisk typo3 at rvt.dds.nl
Thu Aug 27 14:57:46 CEST 2009


Usually it's better to use a TYPE parameter then using eID and
init TS using custom scripts...

Ries
On Aug 27, 2009, at 1:32 AM, Florin Daneliuc wrote:

>
> Thank you Stano, I will go for your option. Probable later I will go  
> for the page Tsconfig once I get to move the configuration from  
> template there. Can page Tsconfig be taken in a parsed or do I have  
> to parse it?
>
> florin
>
> -----Original Message-----
> From: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de 
> ] On Behalf Of Stano Paška
> Sent: Tuesday, August 25, 2009 4:11 PM
> To: TYPO3 English
> Subject: Re: [TYPO3-english] Frontend & ajax
>
> Hi.
>
> You can use something like this (snippet from ql_googlemap_selector)
>
> function loadTS($pageUid) {
> 	$sysPageObj = t3lib_div::makeInstance('t3lib_pageSelect');
> 	$rootLine = $sysPageObj->getRootLine($pageUid);
> 	$TSObj = t3lib_div::makeInstance('t3lib_tsparser_ext');
> 	$TSObj->tt_track = 0;
> 	$TSObj->init();
> 	$TSObj->runThroughTemplates($rootLine);
> 	$TSObj->generateConfig();
> 	$this->conf = $TSObj->setup['plugin.']['ql_googlemap_selector.'];
> }
>
>
> Or you can put configuration into ext_conf_template.txt and it can  
> be accessed via $conf = unserialize($GLOBALS['TYPO3_CONF_VARS'] 
> ['EXT']['extConf']['extension_key']);
>
> Stano.
>
>
> On Tue, Aug 25, 2009 at 2:38 PM, Florin Daneliuc < florin.daneliuc at iquestint.com 
> > wrote:
>
>> Hi,
>>
>> I'm trying to validate a powermail form field when control loses
>> focus. I want to do this only for one field and I started to do this
>> using eID & ajax. But the problem is that I don't know how to access
>> the typoscript configuration in order to get the information that I
>> need, in my case the address of the web service to validate this  
>> field against.
>>
>> Is there a way to get the configuration (page/template) while making
>> an ajax call from the frontend ?
>>
>> Thanks,
>> florin
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


			regards, Ries van Twisk

-------------------------------------------------------------------------------------------------
tags: Freelance TYPO3 Glassfish JasperReports JasperETL Flex Blaze-DS  
WebORB PostgreSQL DB-Architect
email: ries at vantwisk.nl        web:   http://www.rvantwisk.nl/     
skype: callto://r.vantwisk
Phone: +1-810-476-4196    Cell: +593 9901 7694                   SIP:  
+1-747-690-5133









More information about the TYPO3-english mailing list