[TYPO3-mvc] FLUID and JavaScript = total mess
Franz Koch
typo3.RemoveForMessage at elements-net.de
Tue Feb 23 15:49:14 CET 2010
Hi,
> does anybody have a good solution for creating inlineJS with FLUID? I
> need inlineJS to create a googleMap, a viewHelper doesn't work here
> properly and FLUID is parsing the JS object syntax as array and throwing
> errors :/
found a solution. Simply wrap the object properties in '' and FLUID
won't parse them anymore:
BAD:
onJQueryReady.push({
fn : initMap,
p : ''
});
GOOD:
onJQueryReady.push({
'fn' : initMap,
'p' : ''
});
That's better than any partitial CDATA hacks :)
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list