[TYPO3-english] page.jsInline strips parts of the JavaScript code
Jigal van Hemert
jigal at xs4all.nl
Tue Feb 8 11:40:26 CET 2011
Hi,
On 8-2-2011 11:00, Peter Kraume wrote:
> I've added the following TypoScript with JavaScript code within an
> extension:
(...)
> The result in the frontend is broken:
>
> window.fbAsyncInit=function());};(function()());
>
>
> Obviously some parts of the JavaScript are stripped.
Of course it is stripped. dataWrap replaces the parts between {} with
Typoscript constants and expressions. See [1] and search for 'dataWrap'.
In your example you don't need any wrapping, let alone dataWrap. With
4711.value (
the result will be correct.
[1] http://goo.gl/IesS7 (short URL)
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
More information about the TYPO3-english
mailing list