[TYPO3-templavoila] replace register:tx_templavoila_pi1.parentRec.uid inside JavaScript

Christian Wolff Chris at connye.com
Wed Feb 6 20:10:31 CET 2008


On Wed, 06 Feb 2008 17:18:08 +0100, Francois Suter <fsuter at cobweb.ch>  
wrote:

> Hi again,
>
>> Maybe you can use the dataWrap property.
>
> Sorry too fast. It will be confused too.
>
> One solution I can see is using the preCObject and postCObject  
> properties, but it's a bit heavy-handed. Maybe there's a lighter  
> solution.
>
> Cheers
>

simply wrap the js code around your register
like this:

10 = TEXT
10.wrap = <script type="text/javascript"> alert("|");</script>
10.data = register:tx_templavoila_pi1.parentRec.uid

i think you get the idea!

greets chris



-- 
Christian Wolff // Berlin
http://www.connye.com

Latest Projects:
http://www.flycall.de | http://www.atr24.de | http://www.titanic.de


More information about the TYPO3-project-templavoila mailing list